mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
tempfile.rb: [DOC] all arguments [ci skip]
* lib/tempfile.rb (Tempfile.create): mention the other arguments too. [ruby-core:83321] [Misc #14019] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ecf61fa5b0
commit
593d978646
1 changed files with 2 additions and 1 deletions
|
@ -317,7 +317,8 @@ end
|
|||
# the temporary file is removed after the block terminates.
|
||||
# The call returns the value of the block.
|
||||
#
|
||||
# In any case, all arguments (<code>**options</code>) will be treated as Tempfile.new.
|
||||
# In any case, all arguments (+basename+, +tmpdir+, +mode+, and
|
||||
# <code>**options</code>) will be treated as Tempfile.new.
|
||||
#
|
||||
# Tempfile.create('foo', '/home/temp') do |f|
|
||||
# ... do something with f ...
|
||||
|
|
Loading…
Add table
Reference in a new issue