summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
authorRadosław Bułat <radek.bulat@gmail.com>2020-11-09 11:25:11 +0100
committerMarc-André Lafortune <github@marc-andre.ca>2020-12-17 12:46:02 -0500
commit81739ad4fdfcc86a769056fec352f27c686fba1b (patch)
treee526231281907efac92ada6c77671952b5cf8b1c /NEWS.md
parentf7a6b460d5cf3665d3cc682fec34f989b639e7a6 (diff)
Better cooperation between public/protected/private with attr* and alias_method
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3757
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md11
1 files changed, 11 insertions, 0 deletions
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