# File lib/bio/io/flatfile/bdb.rb, line 73 def [](arg) #self.open if @file then @file[arg] else nil end end
# File lib/bio/io/flatfile/bdb.rb, line 82 def []=(key, val) #self.open @file[key.to_s] = val.to_s end
# File lib/bio/io/flatfile/bdb.rb, line 64 def close if @file DEBUG.print "BDBwrapper: close #{filename}\n" @file.close @file = nil end nil end
# File lib/bio/io/flatfile/bdb.rb, line 51 def filename File.join(@dbname, @filename) end
# File lib/bio/io/flatfile/bdb.rb, line 95 def keys if @file then @file.keys else [] end end
# File lib/bio/io/flatfile/bdb.rb, line 55 def open(flag = BDBdefault.flag_read, permission = BDBdefault.permission) unless @file then DEBUG.print "BDBwrapper: open #{filename}\n" @file = BDB::Btree.open(filename, nil, flag, permission) end true end
Generated with the Darkfish Rdoc Generator 2.