1 # OLEProperty
2 # helper class of Property with arguments.
3 class OLEProperty
4 def initialize(obj, dispid, gettypes, settypes)
5 @obj = obj
6 @dispid = dispid
7 @gettypes = gettypes
8 @settypes = settypes
9 end
10 def [](*args)
11 @obj._getproperty(@dispid, args, @gettypes)
12 end
13 def []=(*args)
14 @obj._setproperty(@dispid, args, @settypes)
15 end
16 end