Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v3.0.10.rc1
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (10 sloc) 0.218 kb
class Module
def remove_possible_method(method)
remove_method(method)
rescue NameError
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.