Class: Hulk::JsBundle

Inherits:
Bundle
  • Object
show all
Defined in:
lib/hulk/js_bundle.rb

Instance Attribute Summary

Attributes inherited from Bundle

#name

Instance Method Summary collapse

Methods inherited from Bundle

#<<, #compile!, #compiled?, #digest, #filename, #initialize

Constructor Details

This class inherits a constructor from Hulk::Bundle

Instance Method Details

#extObject



9
10
11
# File 'lib/hulk/js_bundle.rb', line 9

def ext
  :js
end

#generate_compiled(source) ⇒ Object



13
14
15
# File 'lib/hulk/js_bundle.rb', line 13

def generate_compiled(source)
  self.class.compressor.compile(source)
end