Sha256: 8d82c59a7357dcc69f031648df831417c6add8f6883384343c6bfcb3d9ea69a2

Contents?: true

Size: 792 Bytes

Versions: 5

Compression:

Stored size: 792 Bytes

Contents

require 'ms/msrun'

module MS; end

module MS::Parser::MzData
  Base_dir_for_parsers = 'ms/parser/mzdata'

  # inherits XMLStyleParser and version
  include MS::Parser
  include XMLStyleParser
 
  # returns a specific parser MS::Parser::MzXML::#{ParserType}
  # based on choose_parser from xml_style_parser
  def self.new(parse_type=:msrun, version='1.05', opts={})
    special_subclass = 
      if opts[:lazy] == :io
      'LazyData'
      else ; nil
      end

    @version = version
    @method = parse_type
    #p self.methods.grep /choose_parser/
    XMLStyleParser.require_parse_files(Base_dir_for_parsers)
    parser_class = XMLStyleParser.choose_parser(self, parse_type, special_subclass)
    parser = parser_class.new(parse_type, version)
  end

end


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mspire-0.4.9 lib/ms/parser/mzdata.rb
mspire-0.4.2 lib/ms/parser/mzdata.rb
mspire-0.4.4 lib/ms/parser/mzdata.rb
mspire-0.4.5 lib/ms/parser/mzdata.rb
mspire-0.4.7 lib/ms/parser/mzdata.rb