method

parse_line

v1_8_6_287 - Show latest stable - Class: CSV
parse_line(src, fs = nil, rs = nil)
public

Parse a line from given string. Bear in mind it parses ONE LINE. Rest of the string is ignored for example "a,b\r\nc,d" => [‘a', ‘b'] and the second line ‘c,d' is ignored.

If you don't know whether a target string to parse is exactly 1 line or not, use CSV.parse_row instead of this method.