diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-03-14 19:07:02 +0900 |
---|---|---|
committer | git <[email protected]> | 2022-03-15 08:20:47 +0900 |
commit | aa347cbe65031ff02a5b2de0f7a36e29d72b8008 (patch) | |
tree | 8278ec03bf40b46a14539d5c0bec34f8e2a3aa9f /ext/win32ole/win32ole_variable.c | |
parent | 6a8bc90278ca39546a76c8a669f732ce3fc8d417 (diff) |
[ruby/win32ole] Rename toplevel WIN32OLE_* classes
https://github.com/ruby/win32ole/commit/bc7deb6a6a
Diffstat (limited to 'ext/win32ole/win32ole_variable.c')
-rw-r--r-- | ext/win32ole/win32ole_variable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole_variable.c b/ext/win32ole/win32ole_variable.c index 8d80455d97..e7f58c891e 100644 --- a/ext/win32ole/win32ole_variable.c +++ b/ext/win32ole/win32ole_variable.c @@ -369,7 +369,8 @@ VALUE cWIN32OLE_VARIABLE; void Init_win32ole_variable(void) { - cWIN32OLE_VARIABLE = rb_define_class("WIN32OLE_VARIABLE", rb_cObject); + cWIN32OLE_VARIABLE = rb_define_class_under(cWIN32OLE, "Variable", rb_cObject); + rb_define_const(rb_cObject, "WIN32OLE_VARIABLE", cWIN32OLE_VARIABLE); rb_undef_alloc_func(cWIN32OLE_VARIABLE); rb_define_method(cWIN32OLE_VARIABLE, "name", folevariable_name, 0); rb_define_method(cWIN32OLE_VARIABLE, "ole_type", folevariable_ole_type, 0); |