зеркало из https://github.com/github/ruby.git
Update documentation about Time#deconstruct_keys
This commit is contained in:
Родитель
4e6c44e297
Коммит
b7bb14b96e
4
time.c
4
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:
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче