From 81739ad4fdfcc86a769056fec352f27c686fba1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Bu=C5=82at?= Date: Mon, 9 Nov 2020 11:25:11 +0100 Subject: Better cooperation between public/protected/private with attr* and alias_method --- NEWS.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'NEWS.md') diff --git a/NEWS.md b/NEWS.md index 2e20e8dd8c..613976bfd6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -249,6 +249,16 @@ Outstanding ones only. p C.ancestors #=> [C, M1, M2, Object, Kernel, BasicObject] ``` + * Module#public, Module#protected and Module#private methods now accept single + array argument with a list of method names. [[Feature #17314]] + + * Module#attr_accessor, Module#attr_reader, Module#attr_writer and Module#attr + methods now return array of defined methods names as symbols. + [[Feature #17314]] + + * Module#alias_method now returns the defined alias as symbol. + [[Feature #17314]] + * Mutex * `Mutex` is now acquired per-`Fiber` instead of per-`Thread`. This change @@ -691,3 +701,4 @@ end [Feature #17371]: https://bugs.ruby-lang.org/issues/17371 [GH-2991]: https://github.com/ruby/ruby/pull/2991 [Bug #17030]: https://bugs.ruby-lang.org/issues/17030 +[Feature #17314]: https://bugs.ruby-lang.org/issues/17314 -- cgit v1.2.3