From: Kent Sibilev Date: 2004-07-29T23:55:58+09:00 Subject: Re: IO issues: forking, select, and duplexing I guess it's already supported. Check out io.c rb_io_get_io() function. Cheers, Kent. On Jul 29, 2004, at 9:31 AM, Ara.T.Howard wrote: > On Thu, 29 Jul 2004, Yukihiro Matsumoto wrote: > >> If your IO-like object contains a reference to a real IO object that >> can be >> a target of select, you can call select on the IO-like object by just >> adding >> "to_io" method that returns real IO object. > > you mean this will (is) supported? > > class Klass > def initialize path > @io = open path > end > def to_io > @io > end > end > > cool. > > can you give a quick brain dump of other to_XXX method we might want > to know > about? > > kind regards. > > -a > -- > ======================================================================= > ======== > | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov > | PHONE :: 303.497.6469 > | A flower falls, even though we love it; > | and a weed grows, even though we do not love it. | --Dogen > ======================================================================= > ======== >