diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/tempfile.rb | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Wed Jan 27 16:34:35 2016 boshan <[email protected]> + + * 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 <[email protected]> * array.c (rb_ary_dig): [DOC] fix the exception class to be raised 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+". |