From: Mathieu Bouchard Date: 2001-10-22T18:29:55+09:00 Subject: [ruby-talk:22945] Re: Most OO way to make a variation of the IO class? On Mon, 22 Oct 2001, Derek Peschel wrote: > And that leads up to my question. I can imagine a "FIO-DEC IO" class that's > just like the ordinary IO except that it also translates. Is there a simple > way to actually express that in Ruby? Hopefully the new translation code > wouldn't have to worry about the implementation of the existing code; there > would be a small number of new methods to write; and only the class names > would have to be changed in the callers. what i see: 1. If you want to have IO methods filtered, a pattern to use is: define each relevant method in a subclass FIODEC_File