Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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.2 · 3.1 · 3.0