Class: Bio::FlatFileIndex::BDB_1::SecondaryNameSpace

Inherits:
Template::NameSpace show all
Defined in:
lib/bio/io/flatfile/bdb.rb

Overview

class PrimaryNameSpace

Instance Attribute Summary

Attributes inherited from Template::NameSpace

#dbname, #file, #name

Instance Method Summary collapse

Methods inherited from Template::NameSpace

#close, #include?, #initialize

Constructor Details

This class inherits a constructor from Bio::FlatFileIndex::Template::NameSpace

Instance Method Details

#filenameObject



234
235
236
# File 'lib/bio/io/flatfile/bdb.rb', line 234

def filename
  File.join(dbname, "id_#{name}")
end

#mapping(filename) ⇒ Object



231
232
233
# File 'lib/bio/io/flatfile/bdb.rb', line 231

def mapping(filename)
  BDBMappingFile.new(filename)
end

#search(key) ⇒ Object

class SecondaryNameSpaces



238
239
240
241
242
# File 'lib/bio/io/flatfile/bdb.rb', line 238

def search(key)
  r = super(key)
  file.close
  r
end