Class: Node
- Inherits:
-
Object
- Object
- Node
- Defined in:
- lib/bst/node.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#left_node ⇒ Object
Returns the value of attribute left_node.
-
#right_node ⇒ Object
Returns the value of attribute right_node.
Instance Method Summary collapse
-
#initialize(content) ⇒ Node
constructor
A new instance of Node.
Constructor Details
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/bst/node.rb', line 4 def content @content end |
#left_node ⇒ Object
Returns the value of attribute left_node.
2 3 4 |
# File 'lib/bst/node.rb', line 2 def left_node @left_node end |
#right_node ⇒ Object
Returns the value of attribute right_node.
3 4 5 |
# File 'lib/bst/node.rb', line 3 def right_node @right_node end |