End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
CSV::Writer#quote_field
quote_field(field)
lib/csv/writer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/csv/writer.rb, line 181
def quote_field(field)
field = String(field)
encoded_quote_character = @quote_character.encode(field.encoding)
encoded_quote_character +
field.gsub(encoded_quote_character,
encoded_quote_character * 2) +
encoded_quote_character
end
No documentation available