CSV::Row
A Row of a CSV::WithHeaders instance.
Instance methods
Returns the current row's value corresponding to the given header name.
Raises KeyError if no such header exists.
Raises CSV::Error if headers were not requested.
Returns this row's value at the given column index.
A negative index counts from the end.
Raises IndexError if no such column exists.
Returns this row's value corresponding to the given header_pattern.
Raises KeyError if no such header exists.
Raises CSV::Error if headers were not requested.
Returns this row's value corresponding to the given header name.
Returns nil if no such header exists.
Raises CSV::Error if headers were not requested.
Returns this row's value at the given column index.
A negative index counts from the end.
Returns nil if no such column exists.
Returns this row's value corresponding to the given header_pattern.
Returns nil if no such header exists.
Raises CSV::Error if headers were not requested.
Returns the number of columns in this row, regardless of the number of headers (if requested).