diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 43174082a0..2a21a427db 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -288,6 +288,7 @@ class Tempfile < DelegateClass(File) "#<#{self.class}:#{path}>" end end + alias to_s inspect protected