Kibet Yegon
Kibet Yegon

Reputation: 2823

FasterCSV default options and their usage

FasterCSV has a default options hash;

DEFAULT_OPTIONS = { :col_sep => ",",
                    :row_sep => :auto,
                    :quote_char => '"',
                    :converters => nil,
                    :unconverted_fields => nil,
                    :headers => false,
                    :return_headers => false,
                    :header_converters => nil,
                    :skip_blanks => false,
                    :force_quotes => false }

These options can be overridden by passing a hash to FasterCSV read and write methods. Most of them are self explanatory and easy to use but I couldn't find documentation explaining their usage. Is this information available (I haven't been able to find any credible source on the internet) I have had to resort to just trying them out to see what they do.

Upvotes: 0

Views: 539

Answers (1)

steenslag
steenslag

Reputation: 80065

FasterCSV has replaced the former CSV module in the standard library and is since then renamed to 'CSV'. Have a look at the new method for the options.

Upvotes: 1

Related Questions