Class: Bio::FlatFileIndex::Flat_1::SecondaryNameSpace

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

Overview

secondary name space

Internal use only.

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



1040
1041
1042
# File 'lib/bio/io/flatfile/index.rb', line 1040

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

#mapping(filename) ⇒ Object



1037
1038
1039
# File 'lib/bio/io/flatfile/index.rb', line 1037

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

#search(key) ⇒ Object



1043
1044
1045
1046
1047
1048
# File 'lib/bio/io/flatfile/index.rb', line 1043

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