Sha256: 3c164aa11f4f0c6b4182a3e4d650eb66ea4c67f424c0409c3158dbf37f43503d

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 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

    def respond_to_missing?(method_name, include_private = false)
      super
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xmlhasher-1.0.7 lib/xmlhasher.rb
xmlhasher-1.0.6 lib/xmlhasher.rb