class RBTree::GuardNode

Node instance used as a guard.

Public Class Methods

new() click to toggle source
# File lib/rbtree/guard_node.rb, line 6
def initialize
  @color = :black
  @key = nil
  @value = nil
  @left = nil
  @right = nil
  @parent = nil
end

Public Instance Methods

inspect() click to toggle source
# File lib/rbtree/guard_node.rb, line 23
def inspect
  'RBTree::GuardNode'
end
nil?() click to toggle source
# File lib/rbtree/guard_node.rb, line 15
def nil?
  true
end
to_a() click to toggle source
# File lib/rbtree/guard_node.rb, line 19
def to_a
  nil
end