mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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 <yuuji.yaginuma@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4b3809114b
commit
38abd83529
1 changed files with 3 additions and 2 deletions
5
io.c
5
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 <em>ios</em> with the I/O stream given in
|
||||
* <i>other_IO</i> or to a new stream opened on <i>path</i>. 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")
|
||||
|
|
Loading…
Add table
Reference in a new issue