Sha256: fad98966681071f3010fcd31770793a78529b9d2e653e81b22127ca87343341b

Contents?: true

Size: 487 Bytes

Versions: 5

Compression:

Stored size: 487 Bytes

Contents

require 'eeml/libxml_eeml_parser_v005'
require 'eeml/json_environment_parser_v005'

module Eeml
  class ParserRegistry # :nodoc:
    #look at the given xml, build and return a new v005 or 006 parser, accordingly
    #this should work whether the xml given is for a single environment, or for a results list
    def self.get_xml_parser_for(xml_str)
      LibXMLEemlParserV005.new
    end

    def self.get_json_parser_for(json_str)
      JsonEnvironmentParserV005.new
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eeml-0.0.7 lib/eeml/parser_registry.rb
eeml-0.0.6 lib/eeml/parser_registry.rb
eeml-0.0.3 lib/eeml/parser_registry.rb
eeml-0.0.4 lib/eeml/parser_registry.rb
eeml-0.0.5 lib/eeml/parser_registry.rb