Class: Thread
- Inherits:
-
Object
- Object
- Thread
- Defined in:
- lib/win32ole.rb
Overview
re-define Thread#initialize bug #2618(ruby-core:27634)
Instance Method Summary collapse
-
#initialize(*arg, &block) ⇒ Thread
constructor
A new instance of Thread.
- #org_initialize ⇒ Object
Constructor Details
#initialize(*arg, &block) ⇒ Thread
Returns a new instance of Thread.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File '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 |
Instance Method Details
#org_initialize ⇒ Object
7 |
# File 'lib/win32ole.rb', line 7 alias :org_initialize :initialize |