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