Class: OLEProperty

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

Overview

frozen_string_literal: false 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.



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