Hi, Is the following patch valuable? It doesn't work if you require readbytes before stringio! Regards, Michael --- readbytes.rb.old Fri Jul 9 14:05:58 2004 +++ readbytes.rb Fri Jul 9 14:10:56 2004 @@ -11,7 +11,7 @@ attr_reader :data end -class IO +module ReadbytesMixin def readbytes(n) str = read(n) if str == nil @@ -23,6 +23,17 @@ str end end + +class IO + include ReadbytesMixin +end + +if defined?(StringIO) + class StringIO + include ReadbytesMixin + end +end + if __FILE__ == $0 begin