From: Jim Freeze Date: 2003-04-04T22:51:02+09:00 Subject: To inherit or to include? That is the question. Hi I've been poking around the mailing list looking for some insight into using inheritance vs module include. It seems like every time I have a good idea for some class, I wrangle with this question. For example: class AppMaker def main; ; end end class MyApp < AppMaker end MyApp.new.main or module AppMaker def main; ; end end class MyApp include AppMaker end MyApp.new.main I cannot see that the two behave that differently. I'm sure there are some differences. Maybe someone can help me enumerate them. Ideally, I would like some set of guidelines to help me make a choice between these two. Right now, it's fuzzy to me which one I should use. Thanks -- Jim Freeze ---------- "I may not be totally perfect, but parts of me are excellent." -- Ashleigh Brilliant