e1 = WIN32OLE.new('Excel.Application')
=> #
e1.ole_type
[1mTraceback[m (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
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.