DB#to_hash fixed
This commit is contained in:
parent
a143782a9f
commit
9734d78410
|
@ -89,16 +89,16 @@ module SBDB
|
||||||
end
|
end
|
||||||
|
|
||||||
def each key = nil, val = nil, &exe
|
def each key = nil, val = nil, &exe
|
||||||
cursor{|c|c.each key, val, &exe}
|
cursor {|c| c.each key, val, &exe }
|
||||||
end
|
end
|
||||||
|
|
||||||
def reverse key = nil, val = nil, &exe
|
def reverse key = nil, val = nil, &exe
|
||||||
cursor{|c|c.reverse key, val, &exe}
|
cursor {|c| c.reverse key, val, &exe }
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_hash key = nil, val = nil
|
def to_hash key = nil, val = nil
|
||||||
ht = {}
|
ht = {}
|
||||||
each key, val, ht.method( :[]=)
|
each key, val, &ht.method( :[]=)
|
||||||
ht
|
ht
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue