Sha256: 83b98651fa350888d0b2516033d34af1ec38a1c01c0ab8570f202e7d3ef8f0b2
Contents?: true
Size: 404 Bytes
Versions: 20
Compression:
Stored size: 404 Bytes
Contents
====== 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"
Version data entries
20 entries across 20 versions & 4 rubygems