method

parse

v1_9_3_392 - Show latest stable - Class: CSV
parse(*args, &block)
public

This method can be used to easily parse CSV out of a String. You may either provide a block which will be called with each row of the String in turn, or just use the returned Array of Arrays (when no block is given).

You pass your str to read from, and an optional options Hash containing anything CSV::new() understands.