From 75620c804ea47de040016ccf9766c016f2934df2 Mon Sep 17 00:00:00 2001
From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
Date: Sat, 20 Apr 2019 00:42:40 +0900
Subject: [ruby/csv] Add options doc: :write_converters, :write_nil_value,
:write_empty_value (#87)
https://github.com/ruby/csv/commit/5923ee08b7
---
lib/csv.rb | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/lib/csv.rb b/lib/csv.rb
index 086f0351e6..44fbd212b0 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -885,9 +885,19 @@ class CSV
# blank string field is replaced by
# the set object.
# :quote_empty:: TODO
- # :write_converters:: TODO
- # :write_nil_value:: TODO
- # :write_empty_value:: TODO
+ # :write_converters:: Converts values on each line with the
+ # specified Proc object(s),
+ # which receive a String value
+ # and return a String or +nil+
+ # value.
+ # When an array is specified, each
+ # converter will be applied in order.
+ # :write_nil_value:: When a String value, +nil+
+ # value(s) on each line will be replaced
+ # with the specified value.
+ # :write_empty_value:: When a String or +nil+ value,
+ # empty value(s) on each line will be
+ # replaced with the specified value.
# :strip:: When set to a +true+ value, CSV will
# strip "\t\r\n\f\v" around the values.
# If you specify a string instead of
--
cgit v1.2.3