Class: Jammit::JsminCompressor
- Inherits:
-
Object
- Object
- Jammit::JsminCompressor
- Defined in:
- lib/jammit/jsmin_compressor.rb
Overview
Wraps JSMin compressor to use the same API as the rest of Jammit’s compressors.
Instance Method Summary (collapse)
- - (Object) compress(js)
-
- (JsminCompressor) initialize(options = {})
constructor
A new instance of JsminCompressor.
Constructor Details
- (JsminCompressor) initialize(options = {})
Returns a new instance of JsminCompressor
4 5 |
# File 'lib/jammit/jsmin_compressor.rb', line 4 def initialize( = {}) end |
Instance Method Details
- (Object) compress(js)
7 8 9 |
# File 'lib/jammit/jsmin_compressor.rb', line 7 def compress(js) JSMin.minify(js) end |