class Bio::FlatFileIndex::Indexer::Parser::GenBankParser
Constants
- NAMESTYLE
- PRIMARY
Public Class Methods
new(pri_name = nil, sec_names = nil)
click to toggle source
Calls superclass method
Bio::FlatFileIndex::Indexer::Parser::TemplateParser::new
# File lib/bio/io/flatfile/indexer.rb 183 def initialize(pri_name = nil, sec_names = nil) 184 super() 185 self.format = 'genbank' 186 self.dbclass = Bio::GenBank 187 self.set_primary_namespace((pri_name or PRIMARY)) 188 unless sec_names then 189 sec_names = [] 190 @namestyle.each_value do |x| 191 sec_names << x.name if x.name != self.primary.name 192 end 193 end 194 self.add_secondary_namespaces(*sec_names) 195 end