Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

CSV::Table#dig

dig(index_or_header, *index_or_headers)

Extracts the nested value specified by the sequence of index or header objects by calling dig at each step, returning nil if any intermediate step is nil.

See also #delete_if #each #delete #headers also in 3.3 · 3.1 · 3.0