On 5/10/05, Eric Mahurin <eric_mahurin / yahoo.com> 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