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
- #compress(js) ⇒ Object
-
#initialize(options = {}) ⇒ JsminCompressor
constructor
A new instance of JsminCompressor.
Constructor Details
#initialize(options = {}) ⇒ JsminCompressor
Returns a new instance of JsminCompressor.
4 5 |
# File 'lib/jammit/jsmin_compressor.rb', line 4 def initialize( = {}) end |
Instance Method Details
#compress(js) ⇒ Object
7 8 9 |
# File 'lib/jammit/jsmin_compressor.rb', line 7 def compress(js) JSMin.minify(js) end |