Class: Spar::Compressor::CSS

Inherits:
Object
  • Object
show all
Defined in:
lib/spar/compressor.rb

Instance Method Summary collapse

Instance Method Details

#compress(source, options = {}) ⇒ Object



11
12
13
14
15
# File 'lib/spar/compressor.rb', line 11

def compress(source, options = {})
  require 'yui/compressor'
  compressor = YUI::CssCompressor.new(options.merge(Spar.settings['css_compressor']))
  compressor.compress(source)
end