From: Gavin Sinclair Date: 2005-12-08T12:37:35+09:00 Subject: Re: How to capture PrettyPrint output to string? List Recv wrote: > 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 http://extensions.rubyforge.org defines Object#pp_s which does what you want. You can examine the implementation on the website. The Facets/Core project may have something similar. Hopefully with a nicer name! This functionality is a screaming omission from the standard library! Gavin