# File lib/rspec/mocks/argument_expectation.rb, line 29 def is_matcher?(obj) !null_object?(obj) & obj.respond_to?(:matches?) & [:failure_message_for_should, :failure_message].any? { |m| obj.respond_to?(m) } end