From: ts Date: 2004-11-25T20:55:16+09:00 Subject: Re: prettyprint or pp questions >>>>> "H" == Hal Fulton writes: H> 1. Redirect the output to another IO -- something like H> STDERR.pp obj PP.pp(obj, STDERR) # or change $> H> 2. Retrieve the text without printing it (analogous to #inspect): H> str = obj.pretty # or whatever str = ""; PP.pp(obj, str) H> 3. Add pp functionality to the Date class. This doesn't work: H> class Date H> def pretty_print(obj) H> inspect obj.pp(inspect) H> end H> end Guy Decoux