Project

General

Profile

Actions

Bug #124

closed

Module#remove_method broken in 1.8.6-p166

Added by NoKarma (Arthur Schreiber) over 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
[ruby-core:17154]

Description

=begin
Module#remove Method should raise a NameError when trying to remove non-existant methods.

On Ruby 1.8.6-p111, Ruby 1.8.6-p114, Ruby 1.8.7, Ruby 1.8.7-p7 and Ruby 1.8.7-p17:

irb(main):001:0> class A; remove_method :blabla; end
NameError: method blabla' not defined in A from (irb):1:in remove_method'
from (irb):1

But on Ruby 1.8.6-p166:

irb(main):001:0> class A; remove_method :blabla; end
=> A
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0