Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. 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 # => ","