Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

CSV#headers

csv.headers → object

Returns the value that determines whether headers are used; used for parsing; see Option headers:

Example
CSV.new('').headers # => nil