Class: Terrafying::AttributeRef

Inherits:
Ref
  • Object
show all
Defined in:
lib/terrafying/generator.rb

Instance Method Summary collapse

Methods inherited from Ref

#<=>, #==, #[], #[]=, #downcase, #fn_call, #slice, #split, #strip, #to_s, #to_str

Constructor Details

#initialize(ref:, key:) ⇒ AttributeRef

Returns a new instance of AttributeRef.



113
114
115
116
117
118
119
# File 'lib/terrafying/generator.rb', line 113

def initialize(
      ref:,
      key:
    )
  @ref = ref
  @key = key
end

Instance Method Details

#realiseObject



121
122
123
# File 'lib/terrafying/generator.rb', line 121

def realise
  "#{@ref.realise}.#{@key}"
end