Hi, At Mon, 12 Jul 2004 02:58:34 +0900, Michael Neumann wrote in [ruby-talk:106007]: > > > > Is the following patch valuable? > > > > It doesn't work if you require readbytes before stringio! > > > > > > I don't like this, because there are other IO-like classes, > > > Zlib::GzipReader in bundled library for instance. > > > > I agree. > > > > > Instead, what about separating such class-independent methods > > > to a couple of modules so those classes can include them? > > > > Yes, that's a better idea. > > How about putting all methods that depend on read into a module > ReadMixin (another better name for it?). For readbytes.rb this would > look like: It was exactly what I wrote, except for the name. I thought IO::Readable and IO::Writable instead. -- Nobu Nakada