lib/win32ole/property.rb in win32ole-1.8.10 vs lib/win32ole/property.rb in win32ole-1.9.0

- old
+ new

@@ -1,9 +1,14 @@ # frozen_string_literal: false -# OLEProperty -# helper class of Property with arguments. -class OLEProperty + +class WIN32OLE +end + +# OLEProperty is a helper class of Property with arguments, used by +# `olegen.rb`-generated files. +class WIN32OLE::Property + # :stopdoc: def initialize(obj, dispid, gettypes, settypes) @obj = obj @dispid = dispid @gettypes = gettypes @settypes = settypes @@ -12,6 +17,13 @@ @obj._getproperty(@dispid, args, @gettypes) end def []=(*args) @obj._setproperty(@dispid, args, @settypes) end + # :stopdoc: +end + +module WIN32OLE::VariantType + # Alias for `olegen.rb`-generated files, that should include + # WIN32OLE::VARIANT. + OLEProperty = WIN32OLE::Property end