Class: Bio::FlatFileIndex::BDB_1::PrimaryNameSpace
- Inherits:
-
Template::NameSpace
- Object
- Template::NameSpace
- Bio::FlatFileIndex::BDB_1::PrimaryNameSpace
- Defined in:
- lib/bio/io/flatfile/bdb.rb
Overview
class BDBMappingFile
Instance Attribute Summary
Attributes inherited from Template::NameSpace
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
#filename ⇒ Object
217 218 219 |
# File 'lib/bio/io/flatfile/bdb.rb', line 217 def filename File.join(dbname, "key_#{name}") end |
#mapping(filename) ⇒ Object
214 215 216 |
# File 'lib/bio/io/flatfile/bdb.rb', line 214 def mapping(filename) BDBMappingFile.new(filename) end |
#search(key) ⇒ Object
220 221 222 223 224 225 226 227 |
# File 'lib/bio/io/flatfile/bdb.rb', line 220 def search(key) r = super(key) unless r.empty? then [ r ] else r end end |