From 38abd835298efcb704554d6360b167d6189b5043 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sat, 17 Mar 2018 06:39:18 +0000 Subject: [PATCH] Add doc for `opt` parameter of IO#reopen [ci skip] It can be specified from 2.0. Ref: https://bugs.ruby-lang.org/issues/7103 [Fix GH-1841] From: yuuji.yaginuma git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/io.c b/io.c index 4e071c93b6..01142eefac 100644 --- a/io.c +++ b/io.c @@ -7225,12 +7225,13 @@ rb_freopen(VALUE fname, const char *mode, FILE *fp) /* * call-seq: - * ios.reopen(other_IO) -> ios - * ios.reopen(path, mode_str) -> ios + * ios.reopen(other_IO) -> ios + * ios.reopen(path, mode, [, opt]) -> ios * * Reassociates ios with the I/O stream given in * other_IO or to a new stream opened on path. This may * dynamically change the actual class of this stream. + * The +mode+ and +opt+ parameters accept the same values as IO.open. * * f1 = File.new("testfile") * f2 = File.new("testfile")