Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Module#remove_method

(*::interned arg0) -> self
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.