# File lib/mocha/object.rb, line 163
163:     def method_exists?(method, include_public_methods = true)
164:       if include_public_methods
165:         return true if public_methods(include_superclass_methods = true).include?(method)
166:         return true if respond_to?(method.to_sym)
167:       end
168:       return true if protected_methods(include_superclass_methods = true).include?(method)
169:       return true if private_methods(include_superclass_methods = true).include?(method)
170:       return false
171:     end