method
field
v2_4_6 -
Show latest stable
- Class:
CSV::Row
field(header_or_index, minimum_index = 0)public
This method will return the field value by header or index. If a field is not found, nil is returned.
When provided, offset ensures that a header match occurs on or later than the offset index. You can use this to find duplicate headers, without resorting to hard-coding exact indices.