Skip to content

Commit

Permalink
Fix doc with default value with GH-523
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Jan 27, 2016
1 parent b14ea7d commit 75687e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Wed Jan 27 16:34:35 2016 boshan <boshan@subsplash.com>

* 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@gmail.com>

* array.c (rb_ary_dig): [DOC] fix the exception class to be raised
Expand Down
2 changes: 1 addition & 1 deletion lib/tempfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
# 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+".
Expand Down

0 comments on commit 75687e0

Please sign in to comment.