Sha256: 57d25874795037c6c28f851793b9fbc1739219b996143c962051615d46cdc524

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

require 'mocha/parameter_matchers/equals'
require 'mocha/parameter_matchers/positional_or_keyword_hash'

module Mocha
  module ParameterMatchers
    # @private
    module InstanceMethods
      # @private
      def to_matcher
        Mocha::ParameterMatchers::Equals.new(self)
      end
    end
  end
end

# @private
class Object
  include Mocha::ParameterMatchers::InstanceMethods
end

# @private
class Hash
  # @private
  def to_matcher
    Mocha::ParameterMatchers::PositionalOrKeywordHash.new(self)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mocha-2.0.0.alpha lib/mocha/parameter_matchers/instance_methods.rb