lib/rufus/tokyo/openable.rb
def open(*args)
      db = new(*args)
      if block_given?
        begin
          yield db
        ensure
          db.close
        end
      else
        db
      end
    end
def open(*args)
      db = new(*args)
      if block_given?
        begin
          yield db
        ensure
          db.close
        end
      else
        db
      end
    end
Same args as new(), but can take a block form that will
 close the db when done. Similar to File.open(). (via Zev and JEG2)