From b702ab5d6cf585ac0ff0cad3cd5aebbc40e82de0 Mon Sep 17 00:00:00 2001 From: knu Date: Fri, 20 Dec 2002 04:51:13 +0000 Subject: [PATCH] Fix a fatal typo. (pointed out by Jim Freeze) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tempfile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 289fea324a..8c2eb16ef6 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -86,7 +86,7 @@ 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 real + if unlink close! else _close