Method: TC.get_OLE

Defined in:
lib/TCLib.rb

.get_OLE(strAutomationEngine) ⇒ Object



113
114
115
116
117
118
119
120
121
122
123
# File 'lib/TCLib.rb', line 113

def self.get_OLE(strAutomationEngine)
    begin
        tc = WIN32OLE.connect(strAutomationEngine)
    rescue WIN32OLERuntimeError
        begin
            tc = WIN32OLE.new(strAutomationEngine)
        rescue WIN32OLERuntimeError
        end
    end
    tc
end