Class: Alula::Compressors::JSCompressor

Inherits:
Object
  • Object
show all
Defined in:
lib/alula/compressors.rb

Instance Method Summary collapse

Constructor Details

#initializeJSCompressor

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

Returns:

  • (Boolean)


41
42
43
# File 'lib/alula/compressors.rb', line 41

def compresses?(item)
  return true
end