# File lib/mocha/any_instance_method.rb, line 46 46: def method_exists?(method) 47: return true if stubbee.public_instance_methods(false).include?(method) 48: return true if stubbee.protected_instance_methods(false).include?(method) 49: return true if stubbee.private_instance_methods(false).include?(method) 50: return false 51: end