|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/alt/ruby34/share/gems/gems/csv-3.3.2/doc/csv/options/generating/ |
====== 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"