Project

General

Profile

Actions

Feature #5673

closed

undef_method probably doesn't need to raise an error

Added by trans (Thomas Sawyer) over 12 years ago. Updated over 6 years ago.

Status:
Feedback
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 1 (0 open1 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0