Class: Terraspace::Compiler::Erb::Context
- Inherits:
-
Object
- Object
- Terraspace::Compiler::Erb::Context
- Includes:
- Dsl::Syntax::Mod
- Defined in:
- lib/terraspace/compiler/erb/context.rb
Instance Attribute Summary collapse
-
#mod ⇒ Object
readonly
Returns the value of attribute mod.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(mod) ⇒ Context
constructor
A new instance of Context.
Methods included from Util::Logging
Constructor Details
#initialize(mod) ⇒ Context
Returns a new instance of Context.
6 7 8 9 |
# File 'lib/terraspace/compiler/erb/context.rb', line 6 def initialize(mod) @mod = mod @options = mod. # so user has access to cli options end |
Instance Attribute Details
#mod ⇒ Object (readonly)
Returns the value of attribute mod.
5 6 7 |
# File 'lib/terraspace/compiler/erb/context.rb', line 5 def mod @mod end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/terraspace/compiler/erb/context.rb', line 5 def @options end |