diff options
author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2020-08-17 19:37:22 -0500 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-25 01:44:17 +0900 |
commit | 347afd39a367dd01e0e4eb2de1cf17364044bfb0 (patch) | |
tree | af9bc0a99f271a538030f251929f83456f392a64 | |
parent | a23ae56c4d24ade9438393fc47d6f2b730e3f7a8 (diff) |
[ruby/csv] Enhanced RDoc for CSV::Table
(https://github.com/ruby/csv/pull/166)
https://github.com/ruby/csv/commit/1d685aede3
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7851
-rw-r--r-- | doc/csv/options/common/col_sep.rdoc | 6 | ||||
-rw-r--r-- | doc/csv/options/common/row_sep.rdoc | 9 | ||||
-rw-r--r-- | doc/csv/options/generating/write_converters.rdoc | 8 |
3 files changed, 0 insertions, 23 deletions
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 #<BasicObject:>) - CSV.generate(line, col_sep: col_sep) - # Raises NoMethodError (undefined method `to_s' for #<BasicObject:>) - 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 #<BasicObject:>) - CSV.generate(ary, row_sep: row_sep) - # Raises NoMethodError (undefined method `to_s' for #<BasicObject:>) - 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 #<BasicObject:>) - CSV.generate_line(['a', 'b', 'c'], write_converters: bad_converter)
\ No newline at end of file |