Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

CSV::Row#deconstruct_keys

row.deconstruct_keys(keys) → hash

Returns the new Hash suitable for pattern matching containing only the keys specified as an argument.

See also #deconstruct #delete #[]= #delete_if also in 3.2 · 3.1