instance method
remove_possible_method
Ruby on Rails 5.2.8.1
Since v2.3.18Signature
remove_possible_method(method)
Removes the named method, if it exists.
Parameters
-
methodreq
Source
# File activesupport/lib/active_support/core_ext/module/remove_method.rb, line 7
def remove_possible_method(method)
if method_defined?(method) || private_method_defined?(method)
undef_method(method)
end
end
Defined in activesupport/lib/active_support/core_ext/module/remove_method.rb line 7
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Module