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
lib/csv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/csv.rb, line 2123
def return_headers?
parser.return_headers?
end
Returns the value that determines whether headers are to be returned; used for parsing; see Option return_headers:
Example
CSV.new('').return_headers? # => false