Project

General

Profile

Actions

Bug #6657

closed

IRB.fail

Added by znz (Kazuhiro NISHIYAMA) over 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-06-27 trunk 36240) [x86_64-linux]
Backport:
[ruby-dev:45860]

Description

NotImplementError が残っていたので NotImplementedError に変更していて気づいたのですが、
以下のように IRB.fail が NoMethodError になるようです。

% ruby -v -r irb/output-method -e 'IRB::OutputMethod.new.print'
ruby 2.0.0dev (2012-06-27 trunk 36240) [x86_64-linux]
.../lib/ruby/2.0.0/irb/output-method.rb:22:in print': private method fail' called for IRB:Module (NoMethodError)
from -e:1:in `'

変更前は NameError でした。

% ruby -r irb/output-method -e 'IRB::OutputMethod.new.print'
.../lib/ruby/2.0.0/irb/output-method.rb:22:in print': uninitialized constant IRB::OutputMethod::NotImplementError (NameError) from -e:1:in '

Actions

Also available in: Atom PDF

Like0
Like0Like0