From: "Earlopain (Earlopain _) via ruby-core" Date: 2026-09-28T11:32:36+00:00 Subject: [ruby-core:126868] [Ruby Feature#8947] make alias, alias_method, attr_* return name of the alias Issue #8947 has been updated by Earlopain (Earlopain _). Status changed from Open to Closed This was implemented in https://bugs.ruby-lang.org/issues/17314 ---------------------------------------- Feature #8947: make alias, alias_method, attr_* return name of the alias https://bugs.ruby-lang.org/issues/8947#change-119234 * Author: rkh (Konstantin Haase) * Status: Closed ---------------------------------------- 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? -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/