method

init_separators

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: CSV
init_separators(col_sep, row_sep, quote_char, force_quotes) private

Stores the indicated separators for later use.

If auto-discovery was requested for @row_sep, this method will read ahead in the @io and try to find one. ARGF, STDIN, STDOUT, STDERR and any stream open for output only with a default @row_sep of $INPUT_RECORD_SEPARATOR ($/).

This method also establishes the quoting rules used for CSV output.

Show source
Register or log in to add new notes.