From: Massimiliano Mirra Date: 2002-02-28T05:39:32+09:00 Subject: Re: RCR 65: IO orthogonalization, improved reusability On Thu, Feb 28, 2002 at 03:50:10AM +0900, Matt Armstrong wrote: > It would be cool if classes like MultipartReader could implement a few > simple methods (like read and optionally seek) and then be passed to > an IO::Wrapper class that turned them into full fledged objects that > had all the neat methods of IO like each, each_byte, each_line, eof, > eof?, getc, gets, lineno, print, printf, seek, etc. This sounds a lot like implementing a <=>(other) method, then including the Comparable module and getting other comparison operators, doesn't it? Massimiliano