Project

General

Profile

Actions

Feature #8947

open

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

Added by rkh (Konstantin Haase) over 10 years ago. Updated about 2 years ago.

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

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?

Actions #1

Updated by hsbt (Hiroshi SHIBATA) about 2 years ago

  • Project changed from 14 to Ruby master
Actions

Also available in: Atom PDF

Like0
Like0