From: matt@... (matt neuburg) Date: 2006-10-29T13:15:06+09:00 Subject: Re: hash.collect Joe Ruby MUDCRAP-CE wrote: > collect seems to work on a hash: You might find something like the following exploratory utility useful: def method_report(klass) result = klass.ancestors.inject(Array.new) do |result, anc| ms = (anc.instance_methods + anc.methods).sort.uniq result.last[1] -= ms if result.last result << [anc.name, ms] end result.each do |k, v| puts "----", k v.each {|m| puts "\s\s#{m}"} end end # and here's how to use it method_report(Hash) I'm sure there are much snazzier versions out there. m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Tiger - http://www.takecontrolbooks.com/tiger-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com