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.



108
109
110
111
112
113
114
# File 'lib/terrafying/generator.rb', line 108

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

Instance Method Details

#realiseObject



116
117
118
# File 'lib/terrafying/generator.rb', line 116

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