Sha256: 6349cefc52952c15cd8fc7cb5d371ea55cc874820f7c2fa5196104c38e206c2b

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 Bytes

Contents

require "expressir/parser"

module Expressir
  class ExpressParser
    def initialize(file, options)
      @file = file
      @options = options
    end

    def to_owl
      owl_parser.parse(express_xml, options)
    end

    def self.to_owl(file, **options)
      new(file, options).to_owl
    end

    private

    attr_reader :file, :options

    def owl_parser
      Expressir::Parser::OwlParser
    end

    def express_xml
      Expressir::Express.from_xml(file)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
expressir-0.2.6 lib/expressir/express_parser.rb
expressir-0.2.5-x64-mingw32 lib/expressir/express_parser.rb
expressir-0.2.4-x64-mingw32 lib/expressir/express_parser.rb