@private
# File lib/rspec/mocks/argument_matchers.rb, line 163 def initialize(expected) @expected = expected end
# File lib/rspec/mocks/argument_matchers.rb, line 167 def ===(predicate, actual) @expected.__send__(predicate) do |k, v| actual.has_key?(k) && Support::FuzzyMatcher.values_match?(v, actual[k]) end rescue NoMethodError false end
# File lib/rspec/mocks/argument_matchers.rb, line 175 def description(name) "#{name}(#{@expected.inspect.sub(/^\{/,"").sub(/\}$/,"")})" end