From 347afd39a367dd01e0e4eb2de1cf17364044bfb0 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Mon, 17 Aug 2020 19:37:22 -0500 Subject: [ruby/csv] Enhanced RDoc for CSV::Table (https://github.com/ruby/csv/pull/166) https://github.com/ruby/csv/commit/1d685aede3 --- doc/csv/options/common/col_sep.rdoc | 6 ------ doc/csv/options/common/row_sep.rdoc | 9 --------- doc/csv/options/generating/write_converters.rdoc | 8 -------- 3 files changed, 23 deletions(-) (limited to 'doc') diff --git a/doc/csv/options/common/col_sep.rdoc b/doc/csv/options/common/col_sep.rdoc index 05769b5773..3f23c6d2d3 100644 --- a/doc/csv/options/common/col_sep.rdoc +++ b/doc/csv/options/common/col_sep.rdoc @@ -55,9 +55,3 @@ Raises an exception if parsing with the empty \String: # 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 #) - CSV.generate(line, col_sep: col_sep) - # Raises NoMethodError (undefined method `to_s' for #) - CSV.parse(str, col_sep: col_sep) diff --git a/doc/csv/options/common/row_sep.rdoc b/doc/csv/options/common/row_sep.rdoc index 872d9d1f3f..eae15b4a84 100644 --- a/doc/csv/options/common/row_sep.rdoc +++ b/doc/csv/options/common/row_sep.rdoc @@ -89,12 +89,3 @@ if any of the following is true: * The stream is only available for output. Obviously, discovery takes a little time. Set manually if speed is important. Also note that IO objects should be opened in binary mode on Windows if this feature will be used as the line-ending translation can cause problems with resetting the document position to where it was before the read ahead. - ---- - -Raises an exception if the given value is not String-convertible: - row_sep = BasicObject.new - # Raises NoMethodError (undefined method `to_s' for #) - CSV.generate(ary, row_sep: row_sep) - # Raises NoMethodError (undefined method `to_s' for #) - CSV.parse(str, row_sep: row_sep) diff --git a/doc/csv/options/generating/write_converters.rdoc b/doc/csv/options/generating/write_converters.rdoc index 6e5fae5fda..d1a9cc748f 100644 --- a/doc/csv/options/generating/write_converters.rdoc +++ b/doc/csv/options/generating/write_converters.rdoc @@ -23,11 +23,3 @@ With two write converters (called in order): str # => "a,b,c\n" See also {Write Converters}[#class-CSV-label-Write+Converters] - ---- - -Raises an exception if the converter returns a value that is neither +nil+ -nor \String-convertible: - bad_converter = proc {|field| BasicObject.new } - # Raises NoMethodError (undefined method `is_a?' for #) - CSV.generate_line(['a', 'b', 'c'], write_converters: bad_converter) \ No newline at end of file -- cgit v1.2.3