summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-11-18 10:51:14 -0800
committerJeremy Evans <code@jeremyevans.net>2021-11-18 10:51:14 -0800
commitab737b19197c63b84dad9944045a2fd2dc369264 (patch)
tree366ce335ca57ed53fc60929fe2f6d6af93c881d4 /NEWS.md
parent75ecbda438670ec12641d1324d0e81a52ee02e0a (diff)
Update documentation for Module#{private,public,protected,module_function}
Also, update NEWS for this change and the Kernel#load change.
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index 5c2cac23d1..2e4cbc6742 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -143,6 +143,13 @@ Outstanding ones only.
* Integer.try_convert is added. [[Feature #15211]]
+* Kernel
+
+
+ * Kernel#load now accepts a module as the second argument,
+ and will load the file using the given module as the top
+ level module. [[Feature #6210]]
+
* MatchData
* MatchData#match is added [[Feature #18172]]
@@ -156,6 +163,12 @@ Outstanding ones only.
modify the ancestor chain if the receiver has already prepended
the argument. [[Bug #17423]]
+ * Module#private, #public, #protected, and #module_function will
+ now return their arguments. If a single argument is given, it
+ is returned. If no arguments are given, nil is returned. If
+ multiple arguments are given, they are returned as an array.
+ [[Feature #12495]]
+
* Process
* Process.\_fork is added. This is a core method for fork(2).
@@ -398,7 +411,9 @@ See [the repository](https://github.com/ruby/error_highlight) in detail.
`$VERBOSE` is `nil`. [[Feature #17798]]
[Bug #4443]: https://bugs.ruby-lang.org/issues/4443
+[Feature #6210]: https://bugs.ruby-lang.org/issues/6210
[Feature #12194]: https://bugs.ruby-lang.org/issues/12194
+[Feature #12495]: https://bugs.ruby-lang.org/issues/12495
[Feature #14256]: https://bugs.ruby-lang.org/issues/14256
[Feature #14394]: https://bugs.ruby-lang.org/issues/14394
[Feature #14579]: https://bugs.ruby-lang.org/issues/14579