method_exists? (Object)

        # File lib/mocha/object.rb, line 66
    66:   def method_exists?(symbol, include_public_methods = true)
    67:     existing_methods = private_methods(include_superclass_methods = true) + protected_methods(include_superclass_methods = true)
    68:     existing_methods += public_methods(include_superclass_methods = true) if include_public_methods
    69:     existing_methods.any? { |m| m.to_s == symbol.to_s } || (respond_to?(symbol) && include_public_methods)
    70:   end