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.
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
#realise ⇒ Object
121 122 123 |
# File 'lib/terrafying/generator.rb', line 121 def realise "#{@ref.realise}.#{@key}" end |