diff options
author | zverok <zverok.offline@gmail.com> | 2022-10-19 22:07:23 +0300 |
---|---|---|
committer | Victor Shepelev <zverok.offline@gmail.com> | 2022-11-22 23:10:46 +0200 |
commit | eaf2b6c4396ff19921cbc75a394d7a752aaab4ef (patch) | |
tree | ff275ee65e937f17232c64a8c66d5ed258cb15de /NEWS.md | |
parent | 63f4a7a1ec3433cc985503e3ca342e4a9ebda257 (diff) |
Add Time#deconstruct_keys
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6594
Diffstat (limited to 'NEWS.md')
-rw-r--r-- | NEWS.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -225,6 +225,10 @@ Note: We're only listing outstanding class updates. * A Struct class can also be initialized with keyword arguments without `keyword_init: true` on `Struct.new` [[Feature #16806]] +* Time + * `Time#deconstruct_keys` is added, allowing to use `Time` instances + in pattern-matching expressions [[Feature #19071]] + * TracePoint * TracePoint#binding now returns `nil` for `c_call`/`c_return` TracePoints. [[Bug #18487]] @@ -448,3 +452,4 @@ The following deprecated APIs are removed. [Feature #19070]: https://bugs.ruby-lang.org/issues/19070 [Bug #19100]: https://bugs.ruby-lang.org/issues/19100 [Feature #19135]: https://bugs.ruby-lang.org/issues/19135 +[Feature #19071]: https://bugs.ruby-lang.org/issues/19071 |