Tussle Of The State Machines

There's no shortage of Ruby state machine libraries (assm, state_machine, etc.). However when we needed to implement dynamic state machine we didn't find one. The Problem We needed a polymorphic class that could have different state machines triggered in it depending on some condition. Basically, here is what we wanted to achieve: Now the problem … Continue reading Tussle Of The State Machines