SBDB::Unknown: Blocks are nice

This commit is contained in:
Denis Knauf 2010-02-06 11:57:14 +01:00
parent 72aa9c8599
commit 954ca1751b

View file

@ -77,7 +77,7 @@ module SBDB
class Unknown < DB class Unknown < DB
def self.new file, name, *p, &e 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) TYPES[dbt] ? TYPES[dbt].new( file, name, *p, &e) : super( file, name, UNKNOWN, *p, &e)
end end
end end