Class: DSA::BinarySearchTree::Node
- Inherits:
-
Struct
- Object
- Struct
- DSA::BinarySearchTree::Node
- Defined in:
- lib/dsa-ruby/binary_search_tree.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
-
#val ⇒ Object
Returns the value of attribute val.
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left
3 4 5 |
# File 'lib/dsa-ruby/binary_search_tree.rb', line 3 def left @left end |
#right ⇒ Object
Returns the value of attribute right
3 4 5 |
# File 'lib/dsa-ruby/binary_search_tree.rb', line 3 def right @right end |
#val ⇒ Object
Returns the value of attribute val
3 4 5 |
# File 'lib/dsa-ruby/binary_search_tree.rb', line 3 def val @val end |