Class: Fewer::Engines::Js

Inherits:
Abstract show all
Defined in:
lib/fewer/engines/js.rb

Constant Summary

Constants inherited from Abstract

Abstract::SANITISE_REGEXP

Instance Attribute Summary

Attributes inherited from Abstract

#options, #paths, #root

Instance Method Summary collapse

Methods inherited from Abstract

#encoded, #etag, #initialize, #mtime, #source

Constructor Details

This class inherits a constructor from Fewer::Engines::Abstract

Instance Method Details

#readObject



9
10
11
12
13
14
15
# File 'lib/fewer/engines/js.rb', line 9

def read
  if options[:min]
    ::Closure::Compiler.new.compress(super)
  else
    super
  end
end