Class: GeoTreeModule::Partition
- Inherits:
-
Object
- Object
- GeoTreeModule::Partition
- Defined in:
- lib/geotree/node.rb
Instance Attribute Summary collapse
-
#child_name ⇒ Object
Returns the value of attribute child_name.
-
#start_position ⇒ Object
Returns the value of attribute start_position.
Instance Method Summary collapse
-
#initialize(pos = 0, child_name = 0) ⇒ Partition
constructor
A new instance of Partition.
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_name ⇒ Object
Returns the value of attribute child_name.
52 53 54 |
# File 'lib/geotree/node.rb', line 52 def child_name @child_name end |
#start_position ⇒ Object
Returns the value of attribute start_position.
52 53 54 |
# File 'lib/geotree/node.rb', line 52 def start_position @start_position end |