blob: 07d7c9b0183bde851db6d707ac85b75d605750b4 (
plain) (
tree)
|
|
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
|