v2_2_9 - Show latest stable - 0 notes - 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.

Show source
Register or log in to add new notes.