diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-24 00:15:29 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-24 00:15:29 +0900 |
commit | 3a81daaf8dc037057d96b8e8cdc6ab1691e7e9d9 (patch) | |
tree | 017fceb114ca701958006203955208e838d6ecae /NEWS.md | |
parent | 94015200b69820575c8b11d4181d397b033b69ac (diff) |
Module#public_class_method also accepts a symbol array as an argument
I'm unsure if this is intentional, but add a document anyway.
[Feature #17314]
Diffstat (limited to 'NEWS.md')
-rw-r--r-- | NEWS.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -264,8 +264,9 @@ 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#public, Module#protected, Module#private, Module#public_class_method, + Module#private_class_method, toplevel "private" and "public" 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 an array of defined methods names as symbols. |