Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Module#remove_method

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