HEX
Server: LiteSpeed
System: Linux server318.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: sahadove (2893)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/ruby34/share/gems/gems/csv-3.3.2/doc/csv/options/generating/write_empty_value.rdoc
====== Option +write_empty_value+

Specifies the object that is to be substituted for each field
that has an empty \String.

Default value:
  CSV::DEFAULT_OPTIONS.fetch(:write_empty_value) # => ""

Without the option:
  str = CSV.generate_line(['a', '', 'c', ''])
  str # => "a,\"\",c,\"\"\n"

With the option:
  str = CSV.generate_line(['a', '', 'c', ''], write_empty_value: "x")
  str # => "a,x,c,x\n"