Class: Minify
- Inherits:
-
Swig::Worker
- Object
- Swig::Worker
- Minify
- Defined in:
- lib/swig/workers/minify.rb
Instance Method Summary collapse
Methods inherited from Swig::Worker
Constructor Details
This class inherits a constructor from Swig::Worker
Instance Method Details
#eval(files) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/swig/workers/minify.rb', line 6 def eval(files) files.inject([]) do |acc, file| basename = file.basename minified_content = Uglifier.compile(file.read) acc << Swig::FileInStream.new(basename, minified_content) end end |