instance method
remove_possible_method
Ruby on Rails 3.2.22.5
Since v2.3.18Signature
remove_possible_method(method)
No documentation comment.
Parameters
-
methodreq
Source
# 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
Defined in activesupport/lib/active_support/core_ext/module/remove_method.rb line 2
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Module