Class: Catapult::Compressor::CSS

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

Instance Method Summary collapse

Instance Method Details

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



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

def compress(source, options = {})
  require 'yui/compressor'
  compressor = YUI::CssCompressor.new(options)
  compressor.compress(source)
end