1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/csv] Add options doc: :write_converters, :write_nil_value, :write_empty_value (#87)

https://github.com/ruby/csv/commit/5923ee08b7
This commit is contained in:
Masafumi Koba 2019-04-20 00:42:40 +09:00 committed by Hiroshi SHIBATA
parent fe40841bfb
commit 75620c804e

View file

@ -885,9 +885,19 @@ class CSV
# blank string field is replaced by
# the set object.
# <b><tt>:quote_empty</tt></b>:: TODO
# <b><tt>:write_converters</tt></b>:: TODO
# <b><tt>:write_nil_value</tt></b>:: TODO
# <b><tt>:write_empty_value</tt></b>:: TODO
# <b><tt>:write_converters</tt></b>:: Converts values on each line with the
# specified <tt>Proc</tt> object(s),
# which receive a <tt>String</tt> value
# and return a <tt>String</tt> or +nil+
# value.
# When an array is specified, each
# converter will be applied in order.
# <b><tt>:write_nil_value</tt></b>:: When a <tt>String</tt> value, +nil+
# value(s) on each line will be replaced
# with the specified value.
# <b><tt>:write_empty_value</tt></b>:: When a <tt>String</tt> or +nil+ value,
# empty value(s) on each line will be
# replaced with the specified value.
# <b><tt>:strip</tt></b>:: When set to a +true+ value, CSV will
# strip "\t\r\n\f\v" around the values.
# If you specify a string instead of