From: Robert Klemme Date: 2003-05-16T16:38:24+09:00 Subject: Re: State Pattern Implementation (2nd try) "Sacha Schlegel" schrieb im Newsbeitrag news:1053054666.6955.0.camel@gnaraloo.schlegel.li... > Will try to do that with ruby. Good. (It's always good seeing people doing something in Ruby. :-)) > Do YOU or anyone else have links to "implemented" ruby state pattern > code? Not actually. I was experimenting a bit with a more declarative approach to state machines but got distracted along the way. My Idea was to provide a class which defines some keywords (in fact methods that can be executed during class definition) that declare states and transitions. But, as I said I didn't get far. > Concrete I have about 7 states and more transitions. > Did look at your solution. I think I would like to seperate the > different states with their own classes as they might get a little bit > bigger. Sounds very reasonable. Regards robert PS: I don't know whether I am the only one having the problem, but your message came as an attachment. Maybe you can change your NR's settings.