Sha256: aeead345bee179642ce5f69835af3e7706c7fbad3de531e07c727e85d531b730

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

require 'impartial/version'
require 'impartial/base'
require 'impartial/configuration'

module Impartial
  extend Configuration

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

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

    private

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
impartial-0.0.1 lib/impartial.rb