From: Harry Ohlsen Date: 2001-12-06T14:52:22+09:00 Subject: [ruby-talk:27637] Re: Emulating multimethods In article , "Christopher S. Kush" wrote: > Okay, > > I'm writing my first Ruby code *ever* today, so go easy on me. > > I want to write a class that emulates a piece of hardware. The hardware > spec I'm working from says that the Hardware reacts to different Inputs > differently, depending on its State. > > Now, in CLOS, I could write multimethods and the runtime would just > handle everything. But Ruby doesn't have that (yet (hint, hint)), I wrote some code the other day, for fun, after some discussions we had on the newsgroup about overloading methods. I'm happy to share it with you, so long as you realise it's not been tested overly thoroughly yet.