[#82706] [Ruby trunk Bug#13851] getting "can't modify string; temporarily locked" on non-frozen instances — cardoso_tiago@...
Issue #13851 has been updated by chucke (Tiago Cardoso).
3 messages
2017/09/07
[#82853] [Ruby trunk Bug#13916] Race condition when sending a signal to a new fork — russell.davis@...
Issue #13916 has been reported by russelldavis (Russell Davis).
3 messages
2017/09/19
[#82892] [Ruby trunk Bug#13921] buffered read_nonblock doesn't work as expected using SSLSocket — cardoso_tiago@...
Issue #13921 has been updated by chucke (Tiago Cardoso).
3 messages
2017/09/20
[ruby-core:82973] [Ruby trunk Feature#13551][Rejected] Add a method to alias class methods
From:
matz@...
Date:
2017-09-25 08:13:24 UTC
List:
ruby-core #82973
Issue #13551 has been updated by matz (Yukihiro Matsumoto).
Status changed from Feedback to Rejected
As Martin-sensei pointed out, use singleton class notation.
class Foo
class <<Foo
def foo; end
alias bar foo
end
end
I don't think it's worth adding a new method to avoid this simple thing.
Matz.
----------------------------------------
Feature #13551: Add a method to alias class methods
https://bugs.ruby-lang.org/issues/13551#change-66877
* Author: JustJosh (Joshua Stowers)
* Status: Rejected
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
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>