Class: Node

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data.



7
8
9
# File 'lib/ym_data_tree/node.rb', line 7

def data
  @data
end

#leftChildObject

Returns the value of attribute leftChild.



7
8
9
# File 'lib/ym_data_tree/node.rb', line 7

def leftChild
  @leftChild
end

#rightChildObject

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

#initalizeObject



2
3
4
5
6
# File 'lib/ym_data_tree/node.rb', line 2

def initalize
  @data = nil
  @leftChild = nil
  @rightChild = nil
end