def compress(source)
source.gsub!(/\s+/, " ") # collapse space
source.gsub!(/\/\*(.*?)\*\//, "") # remove comments - caution, might want to remove this if using css hacks
...
Ruby Gsubing
res = []
path_without_calculation.gsub(/\{(.*?)\}/) {|match|
res << match[1.. match.size-2]
...
Ruby Extract text between {} bra...
Can this be written shorten?
There is a lot of repetitio...