From: Gavin Sinclair Date: 2003-09-22T11:34:24+09:00 Subject: Re: Making my own output stream > This is probably a dumb question, but: > if I want to make a class such that an instance of it > can be assigned to $stdout without breaking anything, > what does it need to implement? Can I just define a #write > method and include some mixin to handle the rest? > > -Mark Would inheriting from StringIO work? class MarksIO < StringIO ... end Gavin