summaryrefslogtreecommitdiff
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-20 04:51:13 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-20 04:51:13 +0000
commitb702ab5d6cf585ac0ff0cad3cd5aebbc40e82de0 (patch)
treec960baa33210d8a008cb217595aee188d416038a /lib/tempfile.rb
parent02a8d06fa8833db3c266663f31a82deb6e89b2d9 (diff)
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
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 289fea3..8c2eb16 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