Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Module#remove_method

remove_method(symbol) → self
remove_method(string) → self

Removes the method identified by symbol from the current class. For an example, see Module#undef_method. String arguments are converted to symbols.