From 41c8d7005ee5870b891f59de034d2923b9ad9ba3 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Sat, 3 Apr 2010 13:09:53 +0200 Subject: [PATCH] DB#to_hash fixed --- lib/sbdb/db.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sbdb/db.rb b/lib/sbdb/db.rb index fa82405..a83cc01 100644 --- a/lib/sbdb/db.rb +++ b/lib/sbdb/db.rb @@ -96,10 +96,10 @@ module SBDB cursor{|c|c.reverse key, val, &exe} end - def to_hash k = nil, v = nil - h = {} - each( key, val, h.method(:[]=)) - h + def to_hash key = nil, vval = nil + ht = {} + each key, val, ht.method( :[]=) + ht end def truncate txn = nil