Project

General

Profile

Bug #13148 ยป doc_dig.patch

stomar (Marcus Stollsteimer), 01/22/2017 09:23 PM

View differences:

hash.c
* call-seq:
* hsh.dig(key, ...) -> object
*
* Extracts the nested value specified by the sequence of <i>idx</i>
* Extracts the nested value specified by the sequence of <i>key</i>
* objects by calling +dig+ at each step, returning +nil+ if any
* intermediate step is +nil+.
*
struct.c
* call-seq:
* struct.dig(key, ...) -> object
*
* Extracts the nested value specified by the sequence of <i>idx</i>
* Extracts the nested value specified by the sequence of <i>key</i>
* objects by calling +dig+ at each step, returning +nil+ if any
* intermediate step is +nil+.
*
    (1-1/1)