Very nice.  I've appropriated it.  Thanks!


----- Original Message -----
From: "Nikodemus Siivola" <tsiivola / cc.hut.fi>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Thursday, August 01, 2002 9:25 PM
Subject: RE: ftp


>
> $ cat .irbrc
> def help(obj)
>    if obj.class == Class
>       if obj != Object
>          c_list = (obj.methods - Object.methods).sort
>          i_list = (obj.instance_methods - Object.instance_methods).sort
>       else
>          c_list = obj.methods.sort
>          i_list = obj.instance_methods
>       end
>       a_list = obj.ancestors
>    else
>       c_list = (obj.class.methods - Object.methods).sort
>       i_list = (obj.class.instance_methods - Object.instance_methods).sort
>       a_list = obj.class.ancestors
>    end
>    puts "="*50, "Class Methods", "="*50, c_list,
>         "="*50, "Instance Methods", "="*50, i_list,
>         "="*50, "Ancestors", "="*50, a_list
> end
>
>
>
> I really should clean that up, but it does what it is supposed to.
>
>  -- Nikodemus
>
>