instance method
expand_js_compressor
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.1.12Signature
expand_js_compressor(sym)
No documentation comment.
Parameters
-
symreq
Source
# File actionpack/lib/sprockets/bootstrap.rb, line 39
def expand_js_compressor(sym)
case sym
when :closure
require 'closure-compiler'
Closure::Compiler.new
when :uglifier
require 'uglifier'
Uglifier.new
when :yui
require 'yui/compressor'
YUI::JavaScriptCompressor.new
else
sym
end
end
Defined in actionpack/lib/sprockets/bootstrap.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Sprockets::Bootstrap