DB#to_hash fixed

master
Denis Knauf 2010-04-03 13:18:50 +02:00
parent a143782a9f
commit 9734d78410
1 changed files with 3 additions and 3 deletions

View File

@ -89,16 +89,16 @@ module SBDB
end
def each key = nil, val = nil, &exe
cursor{|c|c.each key, val, &exe}
cursor {|c| c.each key, val, &exe }
end
def reverse key = nil, val = nil, &exe
cursor{|c|c.reverse key, val, &exe}
cursor {|c| c.reverse key, val, &exe }
end
def to_hash key = nil, val = nil
ht = {}
each key, val, ht.method( :[]=)
each key, val, &ht.method( :[]=)
ht
end