State machines in Ruby


What’s the best way to represent a state machine in Ruby? I’m not
concerned with performance, just simplicity.


AASM - State machines for Ruby classes


I’m just about to release a new state machine library. Give me a few
more hours since I have a ton of other releases in the queue today. It
will land somewhere here:

It has a much improved API and many more features. Sorry to hype
vaporware but it will be coming soon.