Class: Terraspace::Compiler::Dsl::Base
- Inherits:
-
Object
- Object
- Terraspace::Compiler::Dsl::Base
- Includes:
- DslEvaluator
- Defined in:
- lib/terraspace/compiler/dsl/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#structure ⇒ Object
readonly
Returns the value of attribute structure.
Instance Method Summary collapse
-
#initialize(mod, src_path) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(mod, src_path) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 |
# File 'lib/terraspace/compiler/dsl/base.rb', line 6 def initialize(mod, src_path) @mod, @src_path = mod, src_path @options = mod. # so user has access to cli options @structure = {} end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/terraspace/compiler/dsl/base.rb', line 5 def @options end |
#structure ⇒ Object (readonly)
Returns the value of attribute structure.
5 6 7 |
# File 'lib/terraspace/compiler/dsl/base.rb', line 5 def structure @structure end |