End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
CSV::Parser#add_unconverted_fields
add_unconverted_fields(row, fields)
lib/csv/parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/csv/parser.rb, line 1134
def add_unconverted_fields(row, fields)
class << row
attr_reader :unconverted_fields
end
row.instance_variable_set(:@unconverted_fields, fields)
row
end
This method injects an instance variable unconverted_fields into row and an accessor method for row called unconverted_fields(). The variable is set to the contents of fields.