[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:
parent
fe40841bfb
commit
75620c804e
16
lib/csv.rb
16
lib/csv.rb
@ -885,9 +885,19 @@ class CSV
|
|||||||
# blank string field is replaced by
|
# blank string field is replaced by
|
||||||
# the set object.
|
# the set object.
|
||||||
# <b><tt>:quote_empty</tt></b>:: TODO
|
# <b><tt>:quote_empty</tt></b>:: TODO
|
||||||
# <b><tt>:write_converters</tt></b>:: TODO
|
# <b><tt>:write_converters</tt></b>:: Converts values on each line with the
|
||||||
# <b><tt>:write_nil_value</tt></b>:: TODO
|
# specified <tt>Proc</tt> object(s),
|
||||||
# <b><tt>:write_empty_value</tt></b>:: TODO
|
# 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
|
# <b><tt>:strip</tt></b>:: When set to a +true+ value, CSV will
|
||||||
# strip "\t\r\n\f\v" around the values.
|
# strip "\t\r\n\f\v" around the values.
|
||||||
# If you specify a string instead of
|
# If you specify a string instead of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user