From: MonkeeSage Date: 2007-11-30T07:45:01+09:00 Subject: Re: Like python's dir(), except better... On Nov 29, 7:30 am, Robert Klemme wrote: > 2007/11/29, MonkeeSage : > > > People often want to look at an object's attributes when debugging. > > [1] Python has a handy dir() function that lists the attributes of an > > object. And I use it tons. I often use obj.methods.sort in ruby for > > the same purpose. > > You can view the attributes quite conveniently with pp (you'll see > instance variables nicely nested and indented as a tree). > > Kind regards > > robert > > -- > use.inject do |as, often| as.you_can - without end Example please? Regards, Jordan