A type-safe enum-based finite state machine for Crystal

If you’ve run into aasm for Ruby, this is something like that but native to Crystal. I wanted to take advantage of enum and keep the state machine type-safe, so I chose not to use symbols.

4 Likes