summaryrefslogtreecommitdiff
path: root/ext/win32ole/lib/win32ole/property.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/lib/win32ole/property.rb')
-rw-r--r--ext/win32ole/lib/win32ole/property.rb18
1 files changed, 15 insertions, 3 deletions
diff --git a/ext/win32ole/lib/win32ole/property.rb b/ext/win32ole/lib/win32ole/property.rb
index fea047cd19..558056b32b 100644
--- a/ext/win32ole/lib/win32ole/property.rb
+++ b/ext/win32ole/lib/win32ole/property.rb
@@ -1,7 +1,12 @@
# 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
@@ -14,4 +19,11 @@ class OLEProperty
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