Feature #8947

make alias, alias_method, attr_* return name of the alias

Added by Konstantin Haase 7 months ago.

[ruby-core:57349]
Status:Open
Priority:Normal
Assignee:-
Category:-
Target version:-

Description

Now that def returns the method name, it would be handy to have alias/alias_method return the name of the alias:

class Foo
private def foo() end
protected alias_method :bar, :foo
end

Same goes for the attr_* methods:

class Foo
private attr_accessor :foo, :bar
end

What do you think?

Also available in: Atom PDF