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