From: daz Date: 2003-04-27T16:32:11+09:00 Subject: Re: ASCII class inheritance tree generator "Simon Vandemoortele" wrote > On Mon, 21 Apr 2003 18:19:25 +0900, Pe�a, Botp wrote: > > > Can you post this on wiki? > > http://www.rubygarden.org/ruby?ASCIIClassHierarchyGenerator > 'Stress-testing', I tried ... classTree(Object) # -> : undefined method `instance_methods' for nil (NoMethodError) classTree(Kernel) # -> : undefined method `superclass' for Kernel:Module (NoMethodError) Both can be supported by a one-line (?wrapped? below) update ... methods = (current_root.instance_methods - begin current_root.superclass.instance_methods rescue [] end).sort Cheers, daz -- n= 0x1397701A73D121E6E6EFD395340 s= ('a'..'z').to_a.join << 'JARI ' print s[n&31,1] until (n>>=5)==0