From: Richard Conroy Date: 2010-06-28T23:11:36+09:00 Subject: Re: pretty inspecting objects? --0016e6d7e0939f3f47048a17b219 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Jun 28, 2010 at 2:02 PM, Jarmo Pertman wrote: > Hello! > > Idea would be to write contents of some objects into some file in pretty > inspection format. > > How is it possible in Ruby to get pretty inspection of an object without > printing it to stdout? > > One possibility would be to play with stdout redirection while using > 'pp', but that's not what i'm looking for. Is there any easy way to do > it or should i start monkey-patching 'pp' to add that feature? > > You might want to have a look at awesome print - a gem that is a functional replacement for pretty print. -- http://richardconroy.blogspot.com --0016e6d7e0939f3f47048a17b219--