From: Larry Fast Date: 2007-03-27T14:35:15+09:00 Subject: Re: How do I implement the Unix 'tee' function for $stdout? 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? 22 def finish 23 @assign_block.call @delegate_io 24 @captured_io.string 25 end -- Posted via http://www.ruby-forum.com/.