From: andrew mcelroy Date: 2010-01-02T11:58:12+09:00 Subject: Re: "Dummy" IO object to push and pull data? On Fri, Jan 1, 2010 at 8:33 PM, Shay Hawkins wrote: > Ryan Davis wrote: >> ri StringIO > > Thanks, but I think I'm missing something: > Depending on your application, fakefs might be worth while. Are you needing fake files? Andrew McElroy >> test.rb:15:in 'select': can't convert StringIO to IO (TypeError) > > objectA = StringIO.new("") > objectB = StringIO.new("") > ... > ready = select([objectA,objectB]) > > What would be the alternative to using select on them? > > I apologize if these are basic questions, but I've tried Google and > looked on both the IO and StringIO documentation pages with no luck. If > there's a better way for me to go about searching, do tell - I'm all for > nagging you guys less. > -- > Posted via http://www.ruby-forum.com/. > >