From a143782a9f03c370f050e925839d6ec2489ae2f7 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Sat, 3 Apr 2010 13:12:57 +0200 Subject: [PATCH] DB#to_hash fixed --- lib/sbdb/db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbdb/db.rb b/lib/sbdb/db.rb index a83cc01..2046c6c 100644 --- a/lib/sbdb/db.rb +++ b/lib/sbdb/db.rb @@ -96,7 +96,7 @@ module SBDB cursor{|c|c.reverse key, val, &exe} end - def to_hash key = nil, vval = nil + def to_hash key = nil, val = nil ht = {} each key, val, ht.method( :[]=) ht