End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
CSV::Row#has_key?
row.has_key?(header)
lib/csv/row.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/csv/row.rb, line 200
def has_key?(header)
!!@row.assoc(header)
end
Returns true if there is a field with the given header, false otherwise.