On Sun, 18 Aug 2002 11:27:27 GMT, ts <decoux / moulon.inra.fr> wrote:

>>>>>> "T" == Tom Robinson <tom / alkali.spamfree.org> writes:
>
>T> Is there a ruby equivalent of perl's Data::Dumper?  I'm only
>T> interested in producing a human readable output of the objects tree,
>T> not in evaling the data back into the program in some way.
>
> You can look at pp (it's in 1.7)
>
>   http://www.ruby-lang.org/en/raa-list.rhtml?name=pp
>
>T> Is there a way to list the current modules/objects available from
>T> within the program?  Python has something like this ISTR, an array
>T> called __dir__ or somesuch.
>
> See the module ObjectSpace
>
>    http://www.ruby-lang.org/en/man-1.4/ObSpace.html

Both just what I wanted, thanks!

-- 
tom / alkali.spamfree.org
remove 'spamfree.' to respond