Maintenance Ruby 3.3 gets fixes, but no new features. 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.3.0/lib/csv.rb, line 2009
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.2 · 3.1 · 3.0