Class: WIN32OLE::Property
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/win32ole/lib/win32ole/property.rb |
Overview
OLEProperty is a helper class of Property
with arguments, used by ‘olegen.rb`-generated files.
Class Method Summary
- .new(obj, dispid, gettypes, settypes) ⇒ Property constructor
Instance Method Summary
Constructor Details
.new(obj, dispid, gettypes, settypes) ⇒ Property
# File 'ext/win32ole/lib/win32ole/property.rb', line 10
def initialize(obj, dispid, gettypes, settypes) @obj = obj @dispid = dispid @gettypes = gettypes @settypes = settypes end
Instance Method Details
#[](*args)
[ GitHub ]# File 'ext/win32ole/lib/win32ole/property.rb', line 16
def [](*args) @obj._getproperty(@dispid, args, @gettypes) end
#[]=(*args)
[ GitHub ]# File 'ext/win32ole/lib/win32ole/property.rb', line 19
def []=(*args) @obj._setproperty(@dispid, args, @settypes) end