Project

General

Profile

Actions

Feature #8947

closed

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

Feature #8947: make alias, alias_method, attr_* return name of the alias

Added by rkh (Konstantin Haase) about 13 years ago. Updated 11 days ago.

Status:
Closed
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?


Related issues 1 (0 open — 1 closed)

Related to Ruby - Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expressionClosedActions

Updated by hsbt (Hiroshi SHIBATA) almost 5 years ago Actions #1

  • Project changed from 14 to Ruby

Updated by Earlopain (Earlopain _) 11 days ago Actions #2

  • Related to Feature #17314: Provide a way to declare visibility of attributes defined by attr* methods in a single expression added

Updated by Earlopain (Earlopain _) 11 days ago Actions #3 [ruby-core:126868]

  • Status changed from Open to Closed
Actions

Also available in: PDF Atom