End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
CSV#col_sep
csv.col_sep → string
lib/csv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/csv.rb, line 2008
def col_sep
parser.column_separator
end
Returns the encoded column separator; used for parsing and writing; see Option col_sep:
Example
CSV.new('').col_sep # => ","
See also
#build_writer_fields_converter
#convert
#build_parser_fields_converter
#converters
also in
3.3 · 3.2 · 3.0