Class: JsCompiler
- Inherits:
-
Object
- Object
- JsCompiler
- Defined in:
- lib/dependence/js_compiler.rb
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(source_file, output_file = nil) ⇒ JsCompiler
constructor
A new instance of JsCompiler.
Constructor Details
#initialize(source_file, output_file = nil) ⇒ JsCompiler
Returns a new instance of JsCompiler.
5 6 7 8 9 |
# File 'lib/dependence/js_compiler.rb', line 5 def initialize(source_file, output_file = nil) output_file = source_file.gsub(".js", ".min.js") unless output_file @source = source_file @output = output_file end |