From: "Hanmac (Hans Mackowiak)" Date: 2013-02-09T07:10:13+09:00 Subject: [ruby-core:52048] [ruby-trunk - Bug #7806][Open] inconsistency between Method#inspect and Method#name Issue #7806 has been reported by Hanmac (Hans Mackowiak). ---------------------------------------- Bug #7806: inconsistency between Method#inspect and Method#name https://bugs.ruby-lang.org/issues/7806 Author: Hanmac (Hans Mackowiak) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] it seems that Method#inspect does some magic with alias methods code: (({class A def xyz end alias ver xyz end p A.instance_method(:ver) # p A.instance_method(:ver).name #:ver a=A.new p a.method(:ver) # p a.method(:ver).name #:ver })) shouldn't the #inspect method use the #name one? maybe #alias? and #alias_target and maybe inspect return something like # so it can be seen that the method is an alias? PS: sorry i cant get the code tag working currectly -- http://bugs.ruby-lang.org/