Module: WIN32OLE_PP

Defined in:
lib/win32ole_pp/version.rb,
lib/win32ole_pp/extentions.rb,
lib/win32ole_pp/extentions/common.rb,
lib/win32ole_pp/extentions/win32ole.rb,
lib/win32ole_pp/extentions/win32ole_type.rb,
lib/win32ole_pp/extentions/win32ole_event.rb,
lib/win32ole_pp/extentions/win32ole_param.rb,
lib/win32ole_pp/extentions/win32ole_method.rb,
lib/win32ole_pp/extentions/win32ole_variable.rb

Defined Under Namespace

Modules: Extentions, VERSION

Constant Summary collapse

WIN32OLE_CLASSES =
[
  WIN32OLE,
  WIN32OLE_TYPE,
  WIN32OLE_VARIABLE,
  WIN32OLE_METHOD,
  WIN32OLE_PARAM,
  WIN32OLE_EVENT,
]

Class Method Summary collapse

Class Method Details

.include_extentions(plugin) ⇒ Object



22
23
24
25
26
27
# File 'lib/win32ole_pp/extentions.rb', line 22

def self.include_extentions(plugin)
  WIN32OLE_CLASSES.each do |klass|
    ext = eval("WIN32OLE_PP::Extentions::#{klass.name}::#{plugin}") rescue nil
    klass.class_eval { include ext } if ext
  end
end