Class: Zfben_libjs::Js
- Defined in:
- lib/zfben_libjs/support_source/js.rb
Instance Attribute Summary
Attributes inherited from Source
#compiled, #filepath, #minified, #options, #source
Instance Method Summary collapse
Methods inherited from Source
#compile, #download!, #initialize, #minify, #name, #remote?, #type
Constructor Details
This class inherits a constructor from Zfben_libjs::Source
Instance Method Details
#before_minify ⇒ Object
7 8 9 |
# File 'lib/zfben_libjs/support_source/js.rb', line 7 def before_minify @minified = Uglifier.compile(@source, :copyright => false) end |
#to_js ⇒ Object
3 4 5 |
# File 'lib/zfben_libjs/support_source/js.rb', line 3 def to_js compile end |