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
- #compress(css) ⇒ Object
-
#initialize(options = {}) ⇒ CssminCompressor
constructor
A new instance of CssminCompressor.
Constructor Details
#initialize(options = {}) ⇒ CssminCompressor
Returns a new instance of CssminCompressor.
4 5 |
# File 'lib/jammit/cssmin_compressor.rb', line 4 def initialize( = {}) 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 |