enebo / jruby-win32ole

JRuby implementation of win32ole
Other
29 stars 2 forks source link

ole_type #20

Open Thomas008 opened 5 years ago

Thomas008 commented 5 years ago

e1 = WIN32OLE.new('Excel.Application') => # e1.ole_type Traceback (most recent call last): 7: from C:/jruby-9.2.6.0/bin/jirb:13:in <main>' 6: from org/jruby/RubyKernel.java:1179:incatch' 5: from org/jruby/RubyKernel.java:1179:in catch' 4: from org/jruby/RubyKernel.java:1411:inloop' 3: from org/jruby/RubyKernel.java:1047:in eval' 2: from (irb):2:inevaluate' 1: from C:/jruby-9.2.6.0/lib/ruby/gems/shared/gems/jruby-win32ole-0.8.5/lib/win32ole/win32ole_ruby.rb:47:in ole_type' NoMethodError (undefined methoddocumentation' for #

It seems that in def ole_type typelib = type_info.containing_type_lib docs = typelib.documentation(typelib.index) WIN32OLE_TYPE.new typelib, type_info, docs end

the documentation fails.

Thomas008 commented 5 years ago

I have published this issue in the jruby github already, since I did not know where the best place might be (issue 5756).