[ruby-trunk - Bug #6657][Open] IRB.fail

Issue #6657 has been reported by znz (Kazuhiro NISHIYAMA).


Bug #6657: IRB.fail
https://bugs.ruby-lang.org/issues/6657

Author: znz (Kazuhiro NISHIYAMA)
Status: Open
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-06-27 trunk 36240) [x86_64-linux]

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 methodfail’ 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

Issue #6657 has been updated by mame (Yusuke E.).

Status changed from Open to Assigned


Bug #6657: IRB.fail
https://bugs.ruby-lang.org/issues/6657#change-28097

Author: znz (Kazuhiro NISHIYAMA)
Status: Assigned
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-06-27 trunk 36240) [x86_64-linux]

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 methodfail’ 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