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#return_headers?

csv.return_headers? → true or false

Returns the value that determines whether headers are to be returned; used for parsing; see Option return_headers:

Example
CSV.new('').return_headers? # => false
See also #readlines #rewind #readline #row_sep also in 3.3 · 3.2 · 3.0