Skip to content

Commit 78ff137

Browse files
committed
Move toplevel constant for olegen under WIN32OLE
1 parent 70ea60c commit 78ff137

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

lib/win32ole/property.rb

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# frozen_string_literal: false
2-
# OLEProperty
3-
# helper class of Property with arguments.
4-
class OLEProperty
2+
3+
class WIN32OLE
4+
end
5+
6+
# OLEProperty is a helper class of Property with arguments, used by
7+
# `olegen.rb`-generated files.
8+
class WIN32OLE::Property
9+
# :stopdoc:
510
def initialize(obj, dispid, gettypes, settypes)
611
@obj = obj
712
@dispid = dispid
@@ -14,4 +19,11 @@ def [](*args)
1419
def []=(*args)
1520
@obj._setproperty(@dispid, args, @settypes)
1621
end
22+
# :stopdoc:
23+
end
24+
25+
module WIN32OLE::VariantType
26+
# Alias for `olegen.rb`-generated files, that should include
27+
# WIN32OLE::VARIANT.
28+
OLEProperty = WIN32OLE::Property
1729
end

0 commit comments

Comments
 (0)