Class: CSV::TSV
Constant Summary
Constants inherited from CSV
ConverterEncoding, Converters, DEFAULT_OPTIONS, DateMatcher, DateTimeMatcher, HeaderConverters, VERSION
Instance Attribute Summary
Attributes inherited from CSV
Instance Method Summary collapse
-
#initialize(data, **options) ⇒ TSV
constructor
A new instance of TSV.
Methods inherited from CSV
#<<, #binmode?, #col_sep, #convert, #converters, #each, #eof?, #field_size_limit, filter, #flock, #force_quotes?, foreach, generate, generate_line, generate_lines, #header_convert, #header_converters, #header_row?, #headers, #inspect, instance, #ioctl, #liberal_parsing?, #line, #lineno, #max_field_size, open, parse, parse_line, #path, #quote_char, #read, read, readlines, #return_headers?, #rewind, #row_sep, #shift, #skip_blanks?, #skip_lines, #stat, table, #to_i, #to_io, #unconverted_fields?, #write_headers?
Constructor Details
#initialize(data, **options) ⇒ TSV
Returns a new instance of TSV.
2133 2134 2135 |
# File 'lib/csv.rb', line 2133 def initialize(data, **) super(data, **({col_sep: "\t"}.merge())) end |