class Algorithmable::DataStructs::Tree::BinarySearch::Node

Attributes

item[RW]
left[RW]
right[RW]
size[RW]

Public Class Methods

new(value, size) click to toggle source
# File lib/algorithmable/data_structs/tree/binary_search.rb, line 190
def initialize(value, size)
  @item = value
  @size = size
  @left = nil
  @right = nil
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/algorithmable/data_structs/tree/binary_search.rb, line 197
def <=>(other)
  @item <=> other.item
end