From: Eric Mahurin Date: 2005-05-11T01:10:53+09:00 Subject: a class that looks like (kind_of?) several classes Is there a way to make a class that looks like several classes? For example: class IOArray < IO include Array # doesn't work because Array is not a Module # use IO methods calls to accomplish the Array methods end I don't need multiple inheritance. All I want is these additional classes to appear in the ancestors list. In the above example, IOArray could act like an IO or an Array. It looks like evil.rb might have a solution, but is there a non-evil way? __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail