summaryrefslogtreecommitdiff
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb4
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