instance method
remove_possible_method
Ruby on Rails 5.0.7.2
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 3
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 3
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Module