Sha256: 2b58ef953a31e1aede07e9dc0b9030afbff67cb8592d493e2e20b208a6381a5b

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

require 'mercury_parser/configuration'
require 'mercury_parser/client'

module MercuryParser
  extend Configuration

  class << self
    # Alias for MercuryParser::Client.new
    #
    # @return [MercuryParser::Client]
    def new(options = {})
      MercuryParser::Client.new(options)
    end

    # Delegate to MercuryParser::Client
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

    def respond_to?(method, include_private = false)
      new.respond_to?(method, include_private) || super(method, include_private)
    end
  end
end # MercuryParser

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mercury_parser-0.0.1 lib/mercury_parser.rb