From: "Ara.T.Howard" Date: 2004-07-23T22:02:09+09:00 Subject: Re: sysread and buffered I/O On Fri, 23 Jul 2004, Tanaka Akira wrote: >> i like the sound of >> >> IO#reap >> >> alot, eg. : >> >> # >> # read all chars available on pipe >> # >> buf = pipe.reap >> >> i think this method is much needed and no name exists for something like it. >> if we pick one that is memorable people will use it and remember it. > > I like a method name longer than 4bytes ("read".length). Because I > encourage IO#read over IO#readpartial in usual case. then perhaps using a short name, but it should be an extension to force require statement : require 'io/reap' buf = pipe.reap this would have the additional advantage that IO#reap is not normally defined. -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 ===============================================================================