blob: aef0694189417abf9e95ae976142246f655e56b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'win32ole'
module WIN32OLESpecs
def self.new_ole(name)
retried = false
begin
WIN32OLE.new(name)
rescue WIN32OLERuntimeError => e
unless retried
retried = true
retry
end
raise e
end
end
end
|