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 '

Updated by mame (Yusuke Endoh) over 12 years ago

  • Status changed from Open to Assigned
Actions #2

Updated by keiju (Keiju Ishitsuka) almost 12 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].
Actions

Also available in: Atom PDF

Like0
Like0Like0