# File lib/mocha/any_instance_method.rb, line 50 50: def method_exists?(method) 51: return true if stubbee.public_instance_methods(false).include?(method) 52: return true if stubbee.protected_instance_methods(false).include?(method) 53: return true if stubbee.private_instance_methods(false).include?(method) 54: return false 55: end