Sha256: b641db7814a8a0f0a69539cf45fe1cd9ee20dd8ad2e0b2add3744dbed58d1f55

Contents?: true

Size: 382 Bytes

Versions: 19

Compression:

Stored size: 382 Bytes

Contents

====== Option +write_nil_value+

Specifies the object that is to be substituted for each +nil+-valued field.

Default value:
  CSV::DEFAULT_OPTIONS.fetch(:write_nil_value) # => nil

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

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

Version data entries

19 entries across 19 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_nil_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_nil_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_nil_value.rdoc
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/csv-3.3.0/doc/csv/options/generating/write_nil_value.rdoc
csv-3.3.0 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.9 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.8 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.7 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.6 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.5 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.4 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.3 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.2 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.1 doc/csv/options/generating/write_nil_value.rdoc
csv-3.2.0 doc/csv/options/generating/write_nil_value.rdoc
csv-3.1.9 doc/csv/options/generating/write_nil_value.rdoc
csv-3.1.8 doc/csv/options/generating/write_nil_value.rdoc
csv-3.1.7 doc/csv/options/generating/write_nil_value.rdoc
csv-3.1.6 doc/options/generating/write_nil_value.rdoc