Class: Critbit::Cursor
- Inherits:
-
Object
- Object
- Critbit::Cursor
- Defined in:
- lib/critbit.rb
Direct Known Subclasses
DeleteCursor, EachCursor, EachKeyCursor, EachValueCursor, ListCursor
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Cursor
constructor
————————————————————————————.
Constructor Details
#initialize(&block) ⇒ Cursor
604 605 606 |
# File 'lib/critbit.rb', line 604 def initialize(&block) @block = block end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
597 598 599 |
# File 'lib/critbit.rb', line 597 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
598 599 600 |
# File 'lib/critbit.rb', line 598 def value @value end |