Bug #2425

Kernel#public_method の例外メッセージ

Added by _ wanabe over 5 years ago. Updated about 4 years ago.

Status:Closed
Priority:Low
Assignee:Nobuyoshi Nakada
ruby -v:ruby 1.9.2dev (2009-12-03 trunk 25979) [i386-mingw32] Backport:

Description

=begin
private メソッドの名前を Kernel#public_method に渡したときの例外メッセージが
undefined private method になっています。

$ ruby -ve 'public_method(:fork)'
ruby 1.9.2dev (2009-12-03 trunk 25979) [i386-mingw32]
-e:1:in public_method': undefined private methodfork' for class Object' (NameError)
from -e:1:in
'
=end

Associated revisions

Revision 27446
Added by Yusuke Endoh about 5 years ago

  • proc.c (mnew): fix wrong error message when Kernel#public_method receives name of private method. [Bug #2425]

Revision 27446
Added by Yusuke Endoh about 5 years ago

  • proc.c (mnew): fix wrong error message when Kernel#public_method receives name of private method. [Bug #2425]

History

#1 Updated by ujihisa . over 5 years ago

  • Status changed from Open to Assigned
  • Assignee set to Nobuyoshi Nakada

=begin

=end

#2 Updated by Yusuke Endoh about 5 years ago

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

=begin
This issue was solved with changeset r27446.
_, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF