Actions
Misc #15739
closedImprovements needed to documentation of Hash#dig, Array#dig and OpenStruct#dig
Status:
Rejected
Assignee:
-
Description
The documentation of these three methods fails to explain how they interact. For example:
h = { a: [1,2,3] }
h.dig(:a, 1) #=> 2
Hash#dig
is used first:
a = h.dig(:a) #=> [1,2,3]
Then Array#dig
is invoked:
a.dig(1) #=> 2
Actions
Like0
Like0Like0