Skip to content

Commit b7bb14b

Browse files
committed
Update documentation about Time#deconstruct_keys
1 parent 4e6c44e commit b7bb14b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

time.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5012,7 +5012,9 @@ time_to_a(VALUE time)
50125012
* deconstruct_keys(array_of_names_or_nil) -> hash
50135013
*
50145014
* Returns a hash of the name/value pairs, to use in pattern matching.
5015-
* Possible keys are the same as returned by #to_h.
5015+
* Possible keys are: <tt>:year</tt>, <tt>:month</tt>, <tt>:day</tt>,
5016+
* <tt>:yday</tt>, <tt>:wday</tt>, <tt>:hour</tt>, <tt>:min</tt>, <tt>:sec</tt>,
5017+
* <tt>:subsec</tt>, <tt>:dst</tt>, <tt>:zone</tt>.
50165018
*
50175019
* Possible usages:
50185020
*

0 commit comments

Comments
 (0)