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

ruby-changes:41594

From: nobu <ko1@a...>
Date: Wed, 27 Jan 2016 16:34:39 +0900 (JST)
Subject: [ruby-changes:41594] nobu:r53668 (trunk): Fix doc with default value with GH-523

nobu	2016-01-27 16:35:34 +0900 (Wed, 27 Jan 2016)

  New Revision: 53668

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

  Log:
    Fix doc with default value with GH-523
    
    * lib/tempfile.rb (Tempfile#initialize): [DOC] the first parameter
      `basename` is optional and defaulted to an empty string since
      [GH-523].  [Fix GH-1225]

  Modified files:
    trunk/ChangeLog
    trunk/lib/tempfile.rb
Index: lib/tempfile.rb
===================================================================
--- lib/tempfile.rb	(revision 53667)
+++ lib/tempfile.rb	(revision 53668)
@@ -80,7 +80,7 @@ require 'tmpdir' https://github.com/ruby/ruby/blob/trunk/lib/tempfile.rb#L80
 # mutex.
 class Tempfile < DelegateClass(File)
   # call-seq:
-  #    new(basename, [tmpdir = Dir.tmpdir], [options])
+  #    new(basename = "", [tmpdir = Dir.tmpdir], [options])
   #
   # Creates a temporary file with permissions 0600 (= only readable and
   # writable by the owner) and opens it with mode "w+".
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53667)
+++ ChangeLog	(revision 53668)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jan 27 16:34:35 2016  boshan  <boshan@s...>
+
+	* lib/tempfile.rb (Tempfile#initialize): [DOC] the first parameter
+	  `basename` is optional and defaulted to an empty string since
+	  [GH-523].  [Fix GH-1225]
+
 Wed Jan 27 16:25:54 2016  Koichi ITO  <koic.ito@g...>
 
 	* array.c (rb_ary_dig): [DOC] fix the exception class to be raised

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

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