Class: Zfben_libjs::Js

Inherits:
Source
  • Object
show all
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_minifyObject



7
8
9
# File 'lib/zfben_libjs/support_source/js.rb', line 7

def before_minify
  @minified = Uglifier.compile(@source, :copyright => false)
end

#to_jsObject



3
4
5
# File 'lib/zfben_libjs/support_source/js.rb', line 3

def to_js
  compile
end