Class: Terraspace::Compiler::Erb::Context

Inherits:
Object
  • Object
show all
Includes:
Dsl::Syntax::Mod
Defined in:
lib/terraspace/compiler/erb/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util::Logging

#logger

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.options # so user has access to cli options
end

Instance Attribute Details

#modObject (readonly)

Returns the value of attribute mod.



5
6
7
# File 'lib/terraspace/compiler/erb/context.rb', line 5

def mod
  @mod
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/terraspace/compiler/erb/context.rb', line 5

def options
  @options
end