instance method
redefine_method
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
redefine_method(method, &block)
No documentation comment.
Parameters
-
methodreq -
blockblock
Source
# File activesupport/lib/active_support/core_ext/module/remove_method.rb, line 12
def redefine_method(method, &block)
remove_possible_method(method)
define_method(method, &block)
end
Defined in activesupport/lib/active_support/core_ext/module/remove_method.rb line 12
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Module