From: Robert Klemme Date: 2005-06-23T06:35:37+09:00 Subject: Re: Formatting the Object#inspect output Jeffrey Moss wrote: > When I'm working with large structures in IRB, I get a lot of output > that I can't really read all that well, all the # @something=>[#, #]> > > With larger objects I can't really tell what I'm looking for or where > to find it, it's just 100+ lines of garbage really, I'd like it to be > indented...... > > Any suggestions how I could format this stuff better? > > -Jeff Try require 'pp' pp This might look a bit better. Alternatively you can implement #inspect in your classes to return any string representation you like. This will also be used by IRB. Kind regards robert