From: Charlton Wang Date: 2011-07-22T00:15:28+09:00 Subject: [ruby-core:38345] [Ruby 1.9 - Bug #4058] __method__ does not return correct method name for aliased methods Issue #4058 has been updated by Charlton Wang. Is there any hope of getting __callee__ functionality back at some point? I tried to write a ruby extension that provided a function to call what used to be called by __callee__ but that doesn't appear to work. Has the VM changed to the point where we'll never get this functionality back? ---------------------------------------- Bug #4058: __method__ does not return correct method name for aliased methods http://redmine.ruby-lang.org/issues/4058 Author: john mair Status: Closed Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.2p0 (2010-08-18) [i386-mingw32] =begin class Test def my_method __method__ end alias_method :my_alias, :my_method end Hello.new.my_method #=> :my_method Hello.new.my_alias #=> :my_method I think that `Hello.new.my_alias` should instead return :my_alias =end -- http://redmine.ruby-lang.org