Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. 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.3 · 3.2