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