diff options
author | Koichi Sasada <ko1@atdot.net> | 2022-12-06 18:23:54 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2022-12-06 18:23:54 +0900 |
commit | 87a1fb9ac306769d74edf7d99aa7860c1e8e07e5 (patch) | |
tree | e23e55ccc12d17a00197159f9214f187cf14f380 | |
parent | 901471ab8a36f841fbd1f7396877444a25b06db6 (diff) | |
download | ruby-87a1fb9ac306769d74edf7d99aa7860c1e8e07e5.tar.gz |
NEWS: `UnboundMethod#==`
-rw-r--r-- | NEWS.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |