[ruby-core:81046] [Ruby trunk Bug#13551] Add a method to alias class methods

From: stowers.joshua@...
Date: 2017-05-09 04:20:19 UTC
List: ruby-core #81046
Issue #13551 has been reported by JustJosh (Joshua Stowers).

----------------------------------------
Bug #13551: Add a method to alias class methods
https://bugs.ruby-lang.org/issues/13551

* Author: JustJosh (Joshua Stowers)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
There doesn't seem to be an intuitive way to alias class methods.

Perhaps we can add a method such as 

~~~ ruby
alias_class_method :new_name, :old_name
~~~



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next