From 954ca1751b9ced94029d3ff0e5fca6d7f600dd6b Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Sat, 6 Feb 2010 11:57:14 +0100 Subject: [PATCH] SBDB::Unknown: Blocks are nice --- 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 ac32b8c..2d82c8f 100644 --- a/lib/sbdb/db.rb +++ b/lib/sbdb/db.rb @@ -77,7 +77,7 @@ module SBDB class Unknown < DB def self.new file, name, *p, &e - db = super( file, name, UNKNOWN, *p) {|db| db.bdb_object.get_type } + dbt = super( file, name, UNKNOWN, *p) {|db| db.bdb_object.get_type } TYPES[dbt] ? TYPES[dbt].new( file, name, *p, &e) : super( file, name, UNKNOWN, *p, &e) end end