method

quote_field

ruby latest stable - Class: CSV::Writer

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

quote_field(field)
private

No documentation available.

# File lib/csv/writer.rb, line 129
    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