Class: Terrafying::AttributeRef
Instance Method Summary collapse
-
#initialize(ref:, key:) ⇒ AttributeRef
constructor
A new instance of AttributeRef.
- #realise ⇒ Object
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
#realise ⇒ Object
116 117 118 |
# File 'lib/terrafying/generator.rb', line 116 def realise "#{@ref.realise}.#{@key}" end |