summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2022-12-06 18:23:54 +0900
committerKoichi Sasada <ko1@atdot.net>2022-12-06 18:23:54 +0900
commit87a1fb9ac306769d74edf7d99aa7860c1e8e07e5 (patch)
treee23e55ccc12d17a00197159f9214f187cf14f380 /NEWS.md
parent901471ab8a36f841fbd1f7396877444a25b06db6 (diff)
NEWS: `UnboundMethod#==`
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index d9d180f95b..ff483666a9 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -352,6 +352,17 @@ Note: We're only listing outstanding class updates.
current thread if `target` and `target_line` keyword arguments are not
passed. [[Bug #16889]]
+* UnboundMethod
+
+ * `UnboundMethod#==` returns `true` if the actual method is same. For example,
+ `String.instance_method(:object_id) == Array.instance_method(:object_id)`
+ returns `true`. [Feature #18798]
+
+ * `UnboundMethod#inspect` does not show the receiver of `instance_method`.
+ For example `String.instance_method(:object_id).inspect` returns
+ `"#<UnboundMethod: Kernel#object_id()>"`
+ (was `"#<UnboundMethod: String(Kernel)#object_id()>"`).
+
## Stdlib updates
* ERB
@@ -594,6 +605,7 @@ The following deprecated APIs are removed.
[Feature #18776]: https://bugs.ruby-lang.org/issues/18776
[Bug #18782]: https://bugs.ruby-lang.org/issues/18782
[Feature #18788]: https://bugs.ruby-lang.org/issues/18788
+[Feature #18798]: https://bugs.ruby-lang.org/issues/18798
[Feature #18809]: https://bugs.ruby-lang.org/issues/18809
[Feature #18821]: https://bugs.ruby-lang.org/issues/18821
[Feature #18824]: https://bugs.ruby-lang.org/issues/18824