Class: Terraspace::Compiler::Strategy::Mod
- Inherits:
-
AbstractBase
- Object
- AbstractBase
- Terraspace::Compiler::Strategy::Mod
- Defined in:
- lib/terraspace/compiler/strategy/mod.rb,
lib/terraspace/compiler/strategy/mod/rb.rb,
lib/terraspace/compiler/strategy/mod/tf.rb,
lib/terraspace/compiler/strategy/mod/base.rb,
lib/terraspace/compiler/strategy/mod/pass.rb
Defined Under Namespace
Instance Method Summary collapse
Methods inherited from AbstractBase
Constructor Details
This class inherits a constructor from Terraspace::Compiler::Strategy::AbstractBase
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 |
# File 'lib/terraspace/compiler/strategy/mod.rb', line 3 def run ext = File.extname(@src_path).sub('.','') klass = strategy_class(ext) strategy = klass.new(@mod, @src_path) # IE: Terraspace::Compiler::Strategy::Mod::Rb.new strategy.run end |