Class: GeoTreeModule::Partition

Inherits:
Object
  • Object
show all
Defined in:
lib/geotree/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pos = 0, child_name = 0) ⇒ Partition

Returns a new instance of Partition.



53
54
55
56
# File 'lib/geotree/node.rb', line 53

def initialize(pos=0,child_name=0)
  @start_position = pos
  @child_name = child_name
end

Instance Attribute Details

#child_nameObject

Returns the value of attribute child_name.



52
53
54
# File 'lib/geotree/node.rb', line 52

def child_name
  @child_name
end

#start_positionObject

Returns the value of attribute start_position.



52
53
54
# File 'lib/geotree/node.rb', line 52

def start_position
  @start_position
end