Class: LevelDB::Iterator

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/leveldb.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dbObject (readonly)

Returns the value of attribute db


70
71
72
# File 'lib/leveldb.rb', line 70

def db
  @db
end

#fromObject (readonly)

Returns the value of attribute from


70
71
72
# File 'lib/leveldb.rb', line 70

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to


70
71
72
# File 'lib/leveldb.rb', line 70

def to
  @to
end

Class Method Details

.new(db, opts = {}) ⇒ Object


72
73
74
# File 'lib/leveldb.rb', line 72

def self.new(db, opts={})
  make db, opts
end

Instance Method Details

#inspectObject


77
78
79
# File 'lib/leveldb.rb', line 77

def inspect
  %(<#{self.class} #{@db.inspect} @from=#{@from.inspect} @to=#{@to.inspect}#{' (reversed)' if @reversed}>)
end

#reversed?Boolean


76
# File 'lib/leveldb.rb', line 76

def reversed?; @reversed end