method

fetch

v2_5_5 - Show latest stable - Class: CSV::Row
fetch(header, *varargs)
public

This method will fetch the field value by header. It has the same behavior as Hash#fetch: if there is a field with the given header, its value is returned. Otherwise, if a block is given, it is yielded the header and its result is returned; if a default is given as the second argument, it is returned; otherwise a KeyError is raised.