Class: Alula::Compressors::JSCompressor
- Inherits:
-
Object
- Object
- Alula::Compressors::JSCompressor
- Defined in:
- lib/alula/compressors.rb
Instance Method Summary collapse
- #compress(content) ⇒ Object
- #compresses?(item) ⇒ Boolean
-
#initialize ⇒ JSCompressor
constructor
A new instance of JSCompressor.
Constructor Details
#initialize ⇒ JSCompressor
Returns a new instance of JSCompressor.
37 38 39 |
# File 'lib/alula/compressors.rb', line 37 def initialize @compressor = Uglifier.new end |
Instance Method Details
#compress(content) ⇒ Object
45 46 47 |
# File 'lib/alula/compressors.rb', line 45 def compress(content) @compressor.compress(content) end |
#compresses?(item) ⇒ Boolean
41 42 43 |
# File 'lib/alula/compressors.rb', line 41 def compresses?(item) return true end |