Skip to content

Commit 1acfe1a

Browse files
authored
Merge pull request #41 from owlworks/hotfix/add_description_of_nil_empty_value_option
Add descriptions of new options. (nil_value and empty_value) Patch by Owl. Thanks!!!
2 parents 7befa4d + ea7f7ea commit 1acfe1a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/csv.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,12 @@ def self.table(path, **options)
890890
# attempt to parse input not conformant
891891
# with RFC 4180, such as double quotes
892892
# in unquoted fields.
893-
# <b><tt>:nil_value</tt></b>:: TODO: WRITE ME.
894-
# <b><tt>:empty_value</tt></b>:: TODO: WRITE ME.
893+
# <b><tt>:nil_value</tt></b>:: When set an object, any values of an
894+
# empty field are replaced by the set
895+
# object, not nil.
896+
# <b><tt>:empty_value</tt></b>:: When set an object, any values of a
897+
# blank string field is replaced by
898+
# the set object.
895899
#
896900
# See CSV::DEFAULT_OPTIONS for the default settings.
897901
#

0 commit comments

Comments
 (0)