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

- (JsminCompressor) initialize(options = {})

Returns a new instance of JsminCompressor



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

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