Module: TopPred::Parser_XML

Includes:
Parser, XMLStyleParser
Included in:
DOM
Defined in:
lib/transmembrane/toppred.rb

Defined Under Namespace

Classes: AXML, DOM, LibXML

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Parser

#add_sequences_to_segments, #file_to_index, filetype

Class Method Details

.new(meth = :to_index) ⇒ Object



122
123
124
125
126
# File 'lib/transmembrane/toppred.rb', line 122

def self.new(meth=:to_index)
  parser = XMLStyleParser.choose_parser(self, meth).new
  @method = meth
  parser
end

Instance Method Details

#parse(file) ⇒ Object



128
129
130
# File 'lib/transmembrane/toppred.rb', line 128

def parse(file)
  send(@method, file)
end