Sha256: a542ace8cccc00191a08762dd8775bdc09ee730d071e8e03d9eb26e319162355

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

require 'xmlhasher/configurable'
require 'xmlhasher/handler'
require 'xmlhasher/parser'
require 'xmlhasher/node'
require 'xmlhasher/util'
require 'xmlhasher/version'

module XmlHasher
  class << self
    include XmlHasher::Configurable

    def parser
      @parser ||= XmlHasher::Parser.new(options)
    end

    private

    def method_missing(method_name, *args, &block)
      return super unless parser.respond_to?(method_name)

      parser.send(method_name, *args, &block)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xmlhasher-1.0.5 lib/xmlhasher.rb