aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-27 07:35:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-27 07:35:34 +0000
commit1639a18a8d117243f4f24a976bc2c1e8ad09c63c (patch)
treea909002b20ac40f6400a4156d0ccca073d907761 /lib/tempfile.rb
parent490979c719f51bea44b439c54b78e89d9869792a (diff)
downloadruby-1639a18a8d117243f4f24a976bc2c1e8ad09c63c.tar.gz
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53668 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+".