Class: Jammit::JsminCompressor

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(options = {}) ⇒ JsminCompressor

Returns a new instance of JsminCompressor.



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

def initialize(options = {})
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