From: Nick Sieger Date: 2007-03-27T22:46:20+09:00 Subject: Re: How do I implement the Unix 'tee' function for $stdout? On 3/27/07, Larry Fast wrote: > Nick Sieger wrote: > > For the initial replacement as well as the resetting back to normal, > > see the #initialize method where it is also used. > > /Nick > > OK, now I see it. I'm still quite green at Ruby. > > ... and in finish(), @captured_io.string is returning the captured text? Yes, see the rdocs for StringIO: http://tinyurl.com/28mod3 /Nick