diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-23 14:48:14 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-23 14:48:14 +0000 |
commit | 80a319d347b04e7cbbc8833768ca58c40dbdc8ae (patch) | |
tree | b1faef27239a2c4d557a9d275d918d3075288061 /lib/tempfile.rb | |
parent | ec827b7112082bcdc13ade092376630b0a1b499d (diff) | |
download | ruby-80a319d347b04e7cbbc8833768ca58c40dbdc8ae.tar.gz |
Rename an argument name to avoid a potential clash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r-- | lib/tempfile.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 8c2eb16ef6..e68452fe6a 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -85,8 +85,8 @@ class Tempfile < SimpleDelegator # # If you don't explicitly unlink the temporary file, the removal # will be delayed until the object is finalized. - def close(unlink=false) - if unlink + def close(unlink_now=false) + if unlink_now close! else _close |