Class: Jammit::CssminCompressor

Inherits:
Object
  • Object
show all
Defined in:
lib/jammit/cssmin_compressor.rb

Overview

Wraps CSSMin compressor to use the same API as the rest of Jammit’s compressors.

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ CssminCompressor

Returns a new instance of CssminCompressor.



4
5
# File 'lib/jammit/cssmin_compressor.rb', line 4

def initialize(options = {})
end

Instance Method Details

#compress(css) ⇒ Object



7
8
9
# File 'lib/jammit/cssmin_compressor.rb', line 7

def compress(css)
  CSSMin.minify(css)
end