From: Joel VanderWerf Date: 2007-07-19T11:54:53+09:00 Subject: Re: pp to a string, not stdout Larry Kluger wrote: > Hi, > > pp foo # pretty prints foo to stdout > > But I want to print to a string, which I'll then be handling in rails. irb(main):009:0> [1,2,3].pretty_print_inspect => "[1, 2, 3]" irb(main):010:0> [1,2,3].pretty_inspect => "[1, 2, 3]\n" -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407