summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
authorzverok <zverok.offline@gmail.com>2022-10-19 22:07:23 +0300
committerVictor Shepelev <zverok.offline@gmail.com>2022-11-22 23:10:46 +0200
commiteaf2b6c4396ff19921cbc75a394d7a752aaab4ef (patch)
treeff275ee65e937f17232c64a8c66d5ed258cb15de /NEWS.md
parent63f4a7a1ec3433cc985503e3ca342e4a9ebda257 (diff)
Add Time#deconstruct_keys
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6594
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index 68544c0b8d..2f5ca3c248 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -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