Class: RocksDB::DB

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

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ Object



18
19
20
21
22
23
24
25
26
# File 'lib/rocksdb.rb', line 18

def each(&block)
  if block_given?
    self.each_with_index do |key, value|
      block.call(value)
    end
  else
    self.iterator
  end
end