method

redefine_method

v7.1.3.2 - Show latest stable - Class: Module
redefine_method(method, &block)
public

Replaces the existing method definition, if there is one, with the passed block as its body.