Class: Jammit::CssminCompressor
- Inherits:
-
Object
- Object
- Jammit::CssminCompressor
- 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)
- - (Object) compress(css)
-
- (CssminCompressor) initialize(options = {})
constructor
A new instance of CssminCompressor.
Constructor Details
- (CssminCompressor) initialize(options = {})
Returns a new instance of CssminCompressor
4 5 |
# File 'lib/jammit/cssmin_compressor.rb', line 4 def initialize( = {}) end |
Instance Method Details
- (Object) compress(css)
7 8 9 |
# File 'lib/jammit/cssmin_compressor.rb', line 7 def compress(css) CSSMin.minify(css) end |