From: List Recv Date: 2005-12-08T11:54:04+09:00 Subject: How to capture PrettyPrint output to string? I'd like to capture the output of pp (PrettyPrint) as a string, as opposed to putting it on stdout. Something like: dump = myvar.pp dump.class # => String (Using .pretty_print_inspect is not adequate, as it's not the same as pp, has no newlines, etc.) Thanks! -- Posted via http://www.ruby-forum.com/.