Bug #6657

IRB.fail

Added by Kazuhiro NISHIYAMA about 3 years ago. Updated over 2 years ago.

[ruby-dev:45860]
Status:Closed
Priority:Normal
Assignee:Keiju Ishitsuka
ruby -v:ruby 2.0.0dev (2012-06-27 trunk 36240) [x86_64-linux] Backport:

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 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
'

Associated revisions

Revision 38604
Added by Keiju Ishitsuka over 2 years ago

  • lib/irb/output-method.rb: raise right exception when IRB::OutputMethod#print don't defined [Bug #6657].

Revision 38604
Added by Keiju Ishitsuka over 2 years ago

  • lib/irb/output-method.rb: raise right exception when IRB::OutputMethod#print don't defined [Bug #6657].

History

#1 Updated by Yusuke Endoh almost 3 years ago

  • Status changed from Open to Assigned

#2 Updated by Keiju Ishitsuka over 2 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r38604.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/irb/output-method.rb: raise right exception when IRB::OutputMethod#print don't defined [Bug #6657].

Also available in: Atom PDF