Class: OLEProperty

Inherits:
Object
  • Object
show all
Defined in:
lib/win32ole/property.rb

Overview

OLEProperty helper class of Property with arguments.

Instance Method Summary collapse

Constructor Details

#initialize(obj, dispid, gettypes, settypes) ⇒ OLEProperty

Returns a new instance of OLEProperty.



4
5
6
7
8
9
# File 'lib/win32ole/property.rb', line 4

def initialize(obj, dispid, gettypes, settypes)
  @obj = obj
  @dispid = dispid
  @gettypes = gettypes
  @settypes = settypes
end

Instance Method Details

#[](*args) ⇒ Object



10
11
12
# File 'lib/win32ole/property.rb', line 10

def [](*args)
  @obj._getproperty(@dispid, args, @gettypes)
end

#[]=(*args) ⇒ Object



13
14
15
# File 'lib/win32ole/property.rb', line 13

def []=(*args)
  @obj._setproperty(@dispid, args, @settypes)
end