Class: Bio::FlatFileIndex::BDB_1::PrimaryNameSpace

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

Overview

class BDBMappingFile

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

- (Object) filename



217
218
219
# File 'lib/bio/io/flatfile/bdb.rb', line 217

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

- (Object) mapping(filename)



214
215
216
# File 'lib/bio/io/flatfile/bdb.rb', line 214

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

- (Object) search(key)



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