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.



59
60
61
# File 'lib/leveldb.rb', line 59

def db
  @db
end

#fromObject (readonly)

Returns the value of attribute from.



59
60
61
# File 'lib/leveldb.rb', line 59

def from
  @from
end

#toObject (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

#inspectObject



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

Returns:

  • (Boolean)


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

def reversed?; @reversed end