Sha256: a44c2c1f0be0ff0d9b8ebaa687dd2494cdbb091f2af360696dbe53aeeb4ac96e
Contents?: true
Size: 660 Bytes
Versions: 5
Compression:
Stored size: 660 Bytes
Contents
require 'win32ole' name = proc {|a, b| a.name <=> b.name } WIN32OLE_TYPELIB.typelibs.sort(&name).each do |typelib| puts "TYPELIB: #{typelib.name}" typelib.ole_classes.sort(&name).each do |ole_class| puts " CLASS: #{ole_class.name}" puts " GUID : #{ole_class.guid}" puts " PROGID : #{ole_class.progid}" puts " DESCR : #{ole_class.helpstring}" ole_class.ole_methods.sort(&name).each do |ole_method| print " #{ole_method.return_type} #{ole_method.name}(" print ole_method.params.to_a.inject([]) { |sum, param| sum << "#{param.ole_type} #{param.name}" }.join(", ") puts ")" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
jruby-win32ole-0.8.5 | samples/dump.rb |
jruby-win32ole-0.8.4 | samples/dump.rb |
jruby-win32ole-0.8.3 | samples/dump.rb |
jruby-win32ole-0.8.2 | samples/dump.rb |
jruby-win32ole-0.8.1 | samples/dump.rb |