summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index f703709113..4678a191a7 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -234,7 +234,7 @@ class Tempfile < DelegateClass(File)
# :stopdoc:
def inspect
- if closed?
+ if @tmpfile.closed?
"#<#{self.class}:#{path} (closed)>"
else
"#<#{self.class}:#{path}>"