On Jun 16, 2006, at 10:05 AM, Mike Nelson wrote:

> Mat Schaffer wrote:
>> setting $stdio to a StringIO seems to be pretty productive.
>
> I assume you mean $stdout.
>
> This is what I have thus far with $stdout. It seems to be capturing  
> the
> output, but I'm having trouble getting back the output from StringIO
> later. Not sure what I'm missing. This is what I have.

Its hidden:

$ ri StringIO#string
-------------------------------------------------------- StringIO#string
       strio.string     -> string
------------------------------------------------------------------------
      Returns underlying String object, the subject of IO.

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com