Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v4.0.3
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.275 kB
class Module
def remove_possible_method(method)
if method_defined?(method) || private_method_defined?(method)
undef_method(method)
end
end
def redefine_method(method, &block)
remove_possible_method(method)
define_method(method, &block)
end
end
Jump to Line
Something went wrong with that request. Please try again.