summaryrefslogtreecommitdiff
path: root/lib/csv.rb
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2020-06-09 18:28:35 -0500
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-20 02:32:52 +0900
commit1ac702cd29786085d5bfe618eef9e9d9817e76f3 (patch)
treec2c2c3ccc69227594e08b2b75603c02ecda1c190 /lib/csv.rb
parent08e70126aeca4edcdeab7dc292acda2f50cc41a1 (diff)
[ruby/csv] Add RDoc links for delegated methods (#135)
https://github.com/ruby/csv/commit/1a4b96b418
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3332
Diffstat (limited to 'lib/csv.rb')
-rw-r--r--lib/csv.rb69
1 files changed, 35 insertions, 34 deletions
diff --git a/lib/csv.rb b/lib/csv.rb
index 285f7198b7..32e57ea83f 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -989,40 +989,41 @@ class CSV
# <tt>"rb:UTF-32BE:UTF-8"</tt> would read UTF-32BE data from the file but
# transcode it to UTF-8 before CSV parses it.
#
- # An opened CSV object will delegate to many IO methods for convenience. You
- # may call:
- #
- # * binmode()
- # * binmode?()
- # * close()
- # * close_read()
- # * close_write()
- # * closed?()
- # * eof()
- # * eof?()
- # * external_encoding()
- # * fcntl()
- # * fileno()
- # * flock()
- # * flush()
- # * fsync()
- # * internal_encoding()
- # * ioctl()
- # * isatty()
- # * path()
- # * pid()
- # * pos()
- # * pos=()
- # * reopen()
- # * seek()
- # * stat()
- # * sync()
- # * sync=()
- # * tell()
- # * to_i()
- # * to_io()
- # * truncate()
- # * tty?()
+ # For convenience, an opened CSV object will delegate to many methods in class IO.
+ # (A few have wrapper "guard code" in \CSV.) You may call:
+ # * IO#binmode
+ # * #binmode?
+ # * IO#close
+ # * IO#close_read
+ # * IO#close_write
+ # * IO#closed?
+ # * #eof
+ # * #eof?
+ # * IO#external_encoding
+ # * IO#fcntl
+ # * IO#fileno
+ # * #flock
+ # * IO#flush
+ # * IO#fsync
+ # * IO#internal_encoding
+ # * #ioctl
+ # * IO#isatty
+ # * #path
+ # * IO#pid
+ # * IO#pos
+ # * IO#pos=
+ # * IO#reopen
+ # * #rewind
+ # * IO#seek
+ # * #stat
+ # * IO#string
+ # * IO#sync
+ # * IO#sync=
+ # * IO#tell
+ # * #to_i
+ # * #to_io
+ # * IO#truncate
+ # * IO#tty?
#
def open(filename, mode="r", **options)
# wrap a File opened with the remaining +args+ with no newline