Class: RBTree::GuardNode
Overview
Node instance used as a guard.
Instance Attribute Summary
Attributes inherited from Node
#color, #key, #left, #parent, #right, #value
Instance Method Summary collapse
-
#initialize ⇒ GuardNode
constructor
A new instance of GuardNode.
- #inspect ⇒ Object
- #nil? ⇒ Boolean
- #to_a ⇒ Object
Methods inherited from Node
Constructor Details
#initialize ⇒ GuardNode
Returns a new instance of GuardNode.
6 7 8 9 10 11 12 13 |
# File 'lib/rbtree/guard_node.rb', line 6 def initialize @color = :black @key = nil @value = nil @left = nil @right = nil @parent = nil end |
Instance Method Details
#inspect ⇒ Object
23 24 25 |
# File 'lib/rbtree/guard_node.rb', line 23 def inspect 'RBTree::GuardNode' end |
#nil? ⇒ Boolean
15 16 17 |
# File 'lib/rbtree/guard_node.rb', line 15 def nil? true end |
#to_a ⇒ Object
19 20 21 |
# File 'lib/rbtree/guard_node.rb', line 19 def to_a nil end |