1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Try to avoid not delagated error

```
.../ruby/lib/delegate.rb:405:in `__getobj__': not delegated (ArgumentError)
```
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190703T063006Z.fail.html.gz
This commit is contained in:
Kazuhiro NISHIYAMA 2019-07-03 19:25:05 +09:00
parent 89cef1c56b
commit e44c9b1147
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -234,7 +234,7 @@ class Tempfile < DelegateClass(File)
# :stopdoc:
def inspect
if closed?
if @tmpfile.closed?
"#<#{self.class}:#{path} (closed)>"
else
"#<#{self.class}:#{path}>"