DB#to_hash fixed
This commit is contained in:
parent
ba288a0f4b
commit
41c8d7005e
|
@ -96,10 +96,10 @@ module SBDB
|
||||||
cursor{|c|c.reverse key, val, &exe}
|
cursor{|c|c.reverse key, val, &exe}
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_hash k = nil, v = nil
|
def to_hash key = nil, vval = nil
|
||||||
h = {}
|
ht = {}
|
||||||
each( key, val, h.method(:[]=))
|
each key, val, ht.method( :[]=)
|
||||||
h
|
ht
|
||||||
end
|
end
|
||||||
|
|
||||||
def truncate txn = nil
|
def truncate txn = nil
|
||||||
|
|
Loading…
Reference in a new issue