Project

General

Profile

Feature #5673

undef_method probably doesn't need to raise an error

Added by trans (Thomas Sawyer) over 8 years ago. Updated over 2 years ago.

Status:
Feedback
Priority:
Normal
Target version:
-
[ruby-core:41302]

Description

Is there any significant reason for #undef_method to raise an error if the method is already undefined? If no, then change it to just continue on. It can return true/false to relay if was undefined vs already undefined.


Related issues

Related to Ruby master - Feature #6241: Module#method_defined? with inherited flagRejectedmatz (Yukihiro Matsumoto)04/01/2012Actions

Also available in: Atom PDF