Class: LevelDB::Iterator
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.
59 60 61 |
# File 'lib/leveldb.rb', line 59 def db @db end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
59 60 61 |
# File 'lib/leveldb.rb', line 59 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
59 60 61 |
# File 'lib/leveldb.rb', line 59 def to @to end |
Class Method Details
.new(db, opts = {}) ⇒ Object
61 62 63 |
# File 'lib/leveldb.rb', line 61 def self.new(db, opts={}) make db, opts end |
Instance Method Details
#inspect ⇒ Object
66 67 68 |
# File 'lib/leveldb.rb', line 66 def inspect %(<#{self.class} #{@db.inspect} @from=#{@from.inspect} @to=#{@to.inspect}#{' (reversed)' if @reversed}>) end |
#reversed? ⇒ Boolean
65 |
# File 'lib/leveldb.rb', line 65 def reversed?; @reversed end |