In Files

  • win32ole/lib/win32ole.rb

Parent

Thread

re-define Thread#initialize bug #2618(ruby-core:27634)

Public Class Methods

new(*arg, &block) click to toggle source
 
               # File win32ole/lib/win32ole.rb, line 8
def initialize(*arg, &block)
  if block
    org_initialize(*arg) {
      WIN32OLE.ole_initialize
      begin
        block.call(*arg)
      ensure
        WIN32OLE.ole_uninitialize
      end
    }
  else
    org_initialize(*arg)
  end
end
            
Also aliased as: org_initialize

Public Instance Methods

org_initialize(*arg, &block) click to toggle source
Alias for: new