Class: OLEProperty
- Inherits:
-
Object
- Object
- OLEProperty
- Defined in:
- lib/win32ole/property.rb
Overview
frozen_string_literal: false OLEProperty helper class of Property with arguments.
Instance Method Summary collapse
- #[](*args) ⇒ Object
- #[]=(*args) ⇒ Object
-
#initialize(obj, dispid, gettypes, settypes) ⇒ OLEProperty
constructor
A new instance of OLEProperty.
Constructor Details
#initialize(obj, dispid, gettypes, settypes) ⇒ OLEProperty
Returns a new instance of OLEProperty.
5 6 7 8 9 10 |
# File 'lib/win32ole/property.rb', line 5 def initialize(obj, dispid, gettypes, settypes) @obj = obj @dispid = dispid @gettypes = gettypes @settypes = settypes end |
Instance Method Details
#[](*args) ⇒ Object
11 12 13 |
# File 'lib/win32ole/property.rb', line 11 def [](*args) @obj._getproperty(@dispid, args, @gettypes) end |
#[]=(*args) ⇒ Object
14 15 16 |
# File 'lib/win32ole/property.rb', line 14 def []=(*args) @obj._setproperty(@dispid, args, @settypes) end |