class BinaryTreeNode
Attributes
left_child[RW]
parent[RW]
right_child[RW]
val[RW]
Public Class Methods
new(val=nil, parent=nil, left_child=nil, right_child=nil)
click to toggle source
# File lib/data_structures/binary_tree.rb, line 69 def initialize(val=nil, parent=nil, left_child=nil, right_child=nil) @val = val @parent = parent @left_child = left_child @right_child = right_child end
Public Instance Methods
inspect()
click to toggle source
# File lib/data_structures/binary_tree.rb, line 80 def inspect @val end
to_s()
click to toggle source
# File lib/data_structures/binary_tree.rb, line 76 def to_s @val end