doc/csv/options/common/col_sep.rdoc in csv-3.1.7 vs doc/csv/options/common/col_sep.rdoc in csv-3.1.8

- old
+ new

@@ -1,8 +1,8 @@ ====== Option +col_sep+ -Specifies the \String field separator to be used +Specifies the \String column separator to be used for both parsing and generating. The \String will be transcoded into the data's \Encoding before use. Default value: CSV::DEFAULT_OPTIONS.fetch(:col_sep) # => "," (comma) @@ -53,11 +53,5 @@ Raises an exception if parsing with the empty \String: col_sep = '' # Raises ArgumentError (:col_sep must be 1 or more characters: "") CSV.parse("foo0\nbar1\nbaz2\n", col_sep: col_sep) -Raises an exception if the given value is not String-convertible: - col_sep = BasicObject.new - # Raises NoMethodError (undefined method `to_s' for #<BasicObject:>) - CSV.generate(line, col_sep: col_sep) - # Raises NoMethodError (undefined method `to_s' for #<BasicObject:>) - CSV.parse(str, col_sep: col_sep)