method
remove_possible_method
v3.1.0 -
Show latest stable
- Class:
Module
remove_possible_method(method)public
No documentation available.
# File activesupport/lib/active_support/core_ext/module/remove_method.rb, line 2
def remove_possible_method(method)
if method_defined?(method) || private_method_defined?(method)
remove_method(method)
end
rescue NameError
# If the requested method is defined on a superclass or included module,
# method_defined? returns true but remove_method throws a NameError.
# Ignore this.
end