Class: CSV::TSV

Inherits:
CSV
  • Object
show all
Defined in:
lib/csv.rb

Constant Summary

Constants inherited from CSV

ConverterEncoding, Converters, DEFAULT_OPTIONS, DateMatcher, DateTimeMatcher, HeaderConverters, VERSION

Instance Attribute Summary

Attributes inherited from CSV

#encoding

Instance Method Summary collapse

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, **options)
  super(data, **({col_sep: "\t"}.merge(options)))
end