Class: Sinatra::AssetPack::SimpleEngine
- Defined in:
- lib/sinatra/assetpack/engines/simple.rb
Instance Method Summary collapse
Methods inherited from Engine
Instance Method Details
#css(str, options = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/sinatra/assetpack/engines/simple.rb', line 3 def css(str, ={}) str.gsub! /[ \r\n\t]+/m, ' ' str.gsub! %r{ *([;\{\},:]) *}, '\1' str end |
#js(str, options = {}) ⇒ Object
9 10 11 |
# File 'lib/sinatra/assetpack/engines/simple.rb', line 9 def js(str, ={}) str end |