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

Version Path
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/csv-3.3.0/doc/csv/options/generating/write_empty_value.rdoc
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/csv-3.3.0/doc/csv/options/generating/write_empty_value.rdoc
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/csv-3.3.0/doc/csv/options/generating/write_empty_value.rdoc
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/csv-3.3.0/doc/csv/options/generating/write_empty_value.rdoc
csv-3.3.0 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.9 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.8 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.7 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.6 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.5 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.4 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.3 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.2 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.1 doc/csv/options/generating/write_empty_value.rdoc
csv-3.2.0 doc/csv/options/generating/write_empty_value.rdoc
csv-3.1.9 doc/csv/options/generating/write_empty_value.rdoc
csv-3.1.8 doc/csv/options/generating/write_empty_value.rdoc
csv-3.1.7 doc/csv/options/generating/write_empty_value.rdoc
csv-3.1.6 doc/options/generating/write_empty_value.rdoc
csv-3.1.5 doc/write_empty_value.rdoc