method

fields

v1_9_2_180 - Show latest stable - Class: CSV::Row
fields(*headers_and_or_indices)
public

This method accepts any number of arguments which can be headers, indices, Ranges of either, or two-element Arrays containing a header and offset. Each argument will be replaced with a field lookup as described in CSV::Row.field().

If called with no arguments, all fields are returned.