Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 536 Bytes

Factor assertions out into separate library

Remove ActiveSupport dependency

Nested state support with history

Verify full methods/respond_to? integration

Composite state support

E.g. a Traffic Light could have both green/yellow/red state and “in service”/out of service” state at the same time

More natural/Rubyish DSL

It would be good to have plain-old “def” work as expected inside of “state” blocks instead of requiring “handle”.