Class: DSA::BinarySearchTree::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/dsa-ruby/binary_search_tree.rb

Instance Attribute Summary collapse

Instance Attribute Details

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



3
4
5
# File 'lib/dsa-ruby/binary_search_tree.rb', line 3

def left
  @left
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



3
4
5
# File 'lib/dsa-ruby/binary_search_tree.rb', line 3

def right
  @right
end

#valObject

Returns the value of attribute val

Returns:

  • (Object)

    the current value of val



3
4
5
# File 'lib/dsa-ruby/binary_search_tree.rb', line 3

def val
  @val
end