From: Austin Ziegler Date: 2005-05-11T02:35:36+09:00 Subject: Re: a class that looks like (kind_of?) several classes On 5/10/05, Eric Mahurin wrote: > The example I have above should probably be combining an IO and > a String since an IO accesses characters like a String: > > class IOString < IO > def kind_of?(c); String==c || super; end > # use IO methods (seek/tell/read/write) to accomplish > # the String methods > end > > This was just a toy example. There is a StringIO, you know. require 'stringio' -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca