# File lib/rspec/matchers/include.rb, line 29 def perform_match(predicate, hash_predicate, actual, _expected) _expected.send(predicate) do |expected| if comparing_hash_values?(actual, expected) expected.send(hash_predicate) {|k,v| actual[k] == v} elsif comparing_hash_keys?(actual, expected) actual.has_key?(expected) else actual.include?(expected) end end end