From: ara.t.howard@... Date: 2005-12-08T12:41:47+09:00 Subject: Re: How to capture PrettyPrint output to string? On Thu, 8 Dec 2005, nobuyoshi nakada wrote: > Hi, > > At Thu, 8 Dec 2005 11:54:04 +0900, > List Recv wrote in [ruby-talk:169485]: >> I'd like to capture the output of pp (PrettyPrint) as a string, as >> opposed to putting it on stdout. > > dump = PP.pp(myvar, "") i usually use PP.pp myvar, dump = "" ;-) -a -- =============================================================================== | ara [dot] t [dot] howard [at] noaa [dot] gov | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | -- bodhicaryavatara ===============================================================================