Class: LevelDBNative::Iterator
- Inherits:
-
Object
- Object
- LevelDBNative::Iterator
- Includes:
- Enumerable
- Defined in:
- lib/leveldb-native.rb
Instance Attribute Summary collapse
-
#db ⇒ Object
readonly
Returns the value of attribute db.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#db ⇒ Object (readonly)
Returns the value of attribute db.
87 88 89 |
# File 'lib/leveldb-native.rb', line 87 def db @db end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
87 88 89 |
# File 'lib/leveldb-native.rb', line 87 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
87 88 89 |
# File 'lib/leveldb-native.rb', line 87 def to @to end |
Class Method Details
.new(db, opts = {}) ⇒ Object
89 90 91 |
# File 'lib/leveldb-native.rb', line 89 def self.new(db, opts={}) make db, opts end |
Instance Method Details
#inspect ⇒ Object
97 98 99 100 |
# File 'lib/leveldb-native.rb', line 97 def inspect "<#{self.class} #{db.inspect} " + "@from=#{@from.inspect} @to=#{@to.inspect}#{' (reversed)' if @reversed}>" end |
#keys ⇒ Object
93 |
# File 'lib/leveldb-native.rb', line 93 def keys; map {|k, v| k} end |
#reversed? ⇒ Boolean
96 |
# File 'lib/leveldb-native.rb', line 96 def reversed?; @reversed end |
#values ⇒ Object
94 |
# File 'lib/leveldb-native.rb', line 94 def values; map {|k, v| v} end |