Class: Mappum::Tree
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent) ⇒ Tree
constructor
A new instance of Tree.
- #method_missing(symbol, *args) ⇒ Object
Constructor Details
#initialize(parent) ⇒ Tree
161 162 163 |
# File 'lib/mappum/map.rb', line 161 def initialize(parent) @parent = parent end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args) ⇒ Object
164 165 166 |
# File 'lib/mappum/map.rb', line 164 def method_missing(symbol, *args) return Field.new(@parent, symbol, args[0]) end |
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
159 160 161 |
# File 'lib/mappum/map.rb', line 159 def parent @parent end |