зеркало из https://github.com/github/ruby.git
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:
Родитель
89cef1c56b
Коммит
e44c9b1147
|
@ -234,7 +234,7 @@ class Tempfile < DelegateClass(File)
|
|||
|
||||
# :stopdoc:
|
||||
def inspect
|
||||
if closed?
|
||||
if @tmpfile.closed?
|
||||
"#<#{self.class}:#{path} (closed)>"
|
||||
else
|
||||
"#<#{self.class}:#{path}>"
|
||||
|
|
Загрузка…
Ссылка в новой задаче