[前][次][番号順一覧][スレッド一覧]

ruby-changes:50633

From: k0kubun <ko1@a...>
Date: Sat, 17 Mar 2018 15:39:22 +0900 (JST)
Subject: [ruby-changes:50633] k0kubun:r62793 (trunk): Add doc for `opt` parameter of IO#reopen [ci skip]

k0kubun	2018-03-17 15:39:18 +0900 (Sat, 17 Mar 2018)

  New Revision: 62793

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62793

  Log:
    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@g...>

  Modified files:
    trunk/io.c
Index: io.c
===================================================================
--- io.c	(revision 62792)
+++ io.c	(revision 62793)
@@ -7225,12 +7225,13 @@ rb_freopen(VALUE fname, const char *mode https://github.com/ruby/ruby/blob/trunk/io.c#L7225
 
 /*
  *  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")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]