summaryrefslogtreecommitdiff
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-21 07:56:47 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-21 07:56:47 +0000
commitf82fd950c1a86235eb0529641f482b5a7e4ba835 (patch)
tree0fe757c1d057d31a798367ead8b3046142727f1f /lib/tempfile.rb
parenta5d754acb8cfd6d3ac9f26b17ef27ca588420e38 (diff)
merge revision(s) 53668: [Backport #12759]
* lib/tempfile.rb (Tempfile#initialize): [DOC] the first parameter `basename` is optional and defaulted to an empty string since [GH-523]. [Fix GH-1225] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 13d9585a3b..223637f84a 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -80,7 +80,7 @@ require 'tmpdir'
# 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+".