Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

CSV#col_sep

csv.col_sep → string

Returns the encoded column separator; used for parsing and writing; see Option col_sep:

Example
CSV.new('').col_sep # => ","