Project

General

Profile

Actions

Bug #4058

closed

__method__ does not return correct method name for aliased methods

Added by banister (john mair) about 14 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
Backport:
[ruby-core:33189]

Description

=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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0