summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorKazuki Tsujimoto <kazuki@callcc.net>2022-12-22 13:05:09 +0900
committerKazuki Tsujimoto <kazuki@callcc.net>2022-12-22 13:05:09 +0900
commitb7bb14b96e7e1923d91787fa5a9ca2e4053431b1 (patch)
tree70f489b8657559ed0253329f12e5182cfd518e6c /time.c
parent4e6c44e297a7b504f6390446e2e499a7a97a5363 (diff)
downloadruby-b7bb14b96e7e1923d91787fa5a9ca2e4053431b1.tar.gz
Update documentation about Time#deconstruct_keys
Diffstat (limited to 'time.c')
-rw-r--r--time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/time.c b/time.c
index d0d0ccf1c4..ee2d889a6a 100644
--- a/time.c
+++ b/time.c
@@ -5012,7 +5012,9 @@ time_to_a(VALUE time)
* deconstruct_keys(array_of_names_or_nil) -> hash
*
* Returns a hash of the name/value pairs, to use in pattern matching.
- * Possible keys are the same as returned by #to_h.
+ * Possible keys are: <tt>:year</tt>, <tt>:month</tt>, <tt>:day</tt>,
+ * <tt>:yday</tt>, <tt>:wday</tt>, <tt>:hour</tt>, <tt>:min</tt>, <tt>:sec</tt>,
+ * <tt>:subsec</tt>, <tt>:dst</tt>, <tt>:zone</tt>.
*
* Possible usages:
*