Class: Node
- Inherits:
-
Object
- Object
- Node
- Defined in:
- lib/ym_data_tree/node.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#leftChild ⇒ Object
Returns the value of attribute leftChild.
-
#rightChild ⇒ Object
Returns the value of attribute rightChild.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
7 8 9 |
# File 'lib/ym_data_tree/node.rb', line 7 def data @data end |
#leftChild ⇒ Object
Returns the value of attribute leftChild.
7 8 9 |
# File 'lib/ym_data_tree/node.rb', line 7 def leftChild @leftChild end |
#rightChild ⇒ Object
Returns the value of attribute rightChild.
7 8 9 |
# File 'lib/ym_data_tree/node.rb', line 7 def rightChild @rightChild end |
Instance Method Details
#initalize ⇒ Object
2 3 4 5 6 |
# File 'lib/ym_data_tree/node.rb', line 2 def initalize @data = nil @leftChild = nil @rightChild = nil end |