From: ander882cms@... (Craig J.) Date: 2002-10-31T04:38:22+09:00 Subject: Re: traversing the DOM ander882cms@yahoo.com (Craig J.) wrote in message news:<64b0216e.0210221305.6f841e5c@posting.google.com>... > is there a Ruby script that can show the Internet Explorer DOM for html web pages??? > > thanks. well this is a start.... require 'win32ole' WIN32OLE_TYPE.ole_classes('Microsoft Internet Controls').each do |c| c.ole_methods.sort{|m1, m2| m1.name <=> m2.name }.each do |m| puts m.name m.params.each do |p| print " " + p.ole_type + " " + p.name pinfo = [] pinfo.push "in" if p.input? pinfo.push "out" if p.output? pinfo.push "optional" if p.optional? print "[" + pinfo.join(",") + "]" if !pinfo.empty? print "(= #{p.default})" if p.default puts "\n" end end end