Class: OLEProperty (Ruby 2.7.3)
Description: Class : OLEProperty - Ruby 2.7.3

### Home Classes Methods

### In Files

- win32ole/lib/win32ole/property.rb

### Parent

Object

### Methods

- ::new
- #[]
- #[]=

### Class/Module Index

Quicksearch

- OLEProperty
- WIN32OLE
- WIN32OLE::VARIANT
- WIN32OLEQueryInterfaceError
- WIN32OLERuntimeError
- WIN32OLE_EVENT
- WIN32OLE_METHOD
- WIN32OLE_PARAM
- WIN32OLE_RECORD
- WIN32OLE_TYPE
- WIN32OLE_TYPELIB
- WIN32OLE_VARIABLE
- WIN32OLE_VARIANT

No matching classes.

# OLEProperty

`OLEProperty` helper class of Property with arguments.

### Public Class Methods

new(obj, dispid, gettypes, settypes) click to toggle source

                   # File win32ole/lib/win32ole/property.rb, line 5
    def initialize(obj, dispid, gettypes, settypes)
      @obj = obj
      @dispid = dispid
      @gettypes = gettypes
      @settypes = settypes
    end

### Public Instance Methods

[](*args) click to toggle source

                   # File win32ole/lib/win32ole/property.rb, line 11
    def [](*args)
      @obj._getproperty(@dispid, args, @gettypes)
    end

[]=(*args) click to toggle source

                   # File win32ole/lib/win32ole/property.rb, line 14
    def []=(*args)
      @obj._setproperty(@dispid, args, @settypes)
    end