Class: Mongoose::Node
Overview
Node Class
Instance Attribute Summary collapse
-
#forward ⇒ Object
Returns the value of attribute forward.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#lvl ⇒ Object
readonly
Returns the value of attribute lvl.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(lvl, key, value) ⇒ Node
constructor
A new instance of Node.
- #inspect ⇒ Object
Constructor Details
#initialize(lvl, key, value) ⇒ Node
Returns a new instance of Node.
471 472 473 474 475 476 |
# File 'lib/mongoose/skiplist.rb', line 471 def initialize(lvl, key, value) @lvl = lvl @forward = [] @key = key @value = value end |
Instance Attribute Details
#forward ⇒ Object
Returns the value of attribute forward.
468 469 470 |
# File 'lib/mongoose/skiplist.rb', line 468 def forward @forward end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
469 470 471 |
# File 'lib/mongoose/skiplist.rb', line 469 def key @key end |
#lvl ⇒ Object (readonly)
Returns the value of attribute lvl.
469 470 471 |
# File 'lib/mongoose/skiplist.rb', line 469 def lvl @lvl end |
#value ⇒ Object
Returns the value of attribute value.
468 469 470 |
# File 'lib/mongoose/skiplist.rb', line 468 def value @value end |
Instance Method Details
#inspect ⇒ Object
478 479 480 |
# File 'lib/mongoose/skiplist.rb', line 478 def inspect self.class.to_s end |