Class: Mappum::Tree

Inherits:
Object show all
Defined in:
lib/mappum/map.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#parentObject

Returns the value of attribute parent.



159
160
161
# File 'lib/mappum/map.rb', line 159

def parent
  @parent
end