Class: Sinatra::AssetPack::SimpleEngine

Inherits:
Engine
  • Object
show all
Defined in:
lib/sinatra/assetpack/engines/simple.rb

Instance Method Summary collapse

Methods inherited from Engine

#sys

Instance Method Details

#css(str, options = {}) ⇒ Object



3
4
5
6
7
# File 'lib/sinatra/assetpack/engines/simple.rb', line 3

def css(str, options={})
  str.gsub! /[ \r\n\t]+/m, ' '
  str.gsub! %r{ *([;\{\},:]) *}, '\1'
  str
end