Class: TechnoGate::Contao::CoffeescriptCompiler

Inherits:
Compiler
  • Object
show all
Defined in:
lib/contao/coffeescript_compiler.rb

Instance Attribute Summary

Attributes inherited from Compiler

#options

Instance Method Summary collapse

Methods inherited from Compiler

clean, compile, #compile

Constructor Details

#initialize(options = {}) ⇒ CoffeescriptCompiler

Returns a new instance of CoffeescriptCompiler.



9
10
11
# File 'lib/contao/coffeescript_compiler.rb', line 9

def initialize(options = {})
  super
end

Instance Method Details

#cleanObject



13
14
15
16
17
# File 'lib/contao/coffeescript_compiler.rb', line 13

def clean
  FileUtils.rm_rf compiled_javascript_path.to_s if File.exists?(compiled_javascript_path)

  super
end