class CSV::Parser
inherits Reference
¶
A CSV parser. It lets you consume a CSV row by row.
Most of the time CSV#parse
and CSV#each_row
are more convenient.
Class methods¶
.new(string_or_io : String | IO, separator : Char = DEFAULT_SEPARATOR, quote_char : Char = DEFAULT_QUOTE_CHAR)
¶
(string_or_io : String | IO, separator : Char = DEFAULT_SEPARATOR, quote_char : Char = DEFAULT_QUOTE_CHAR)
Creates a parser from a String
or IO
.
Optionally takes the optional separator and quote_char arguments for
specifying non-standard cell separators and quote characters