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