FreeBSD.software
Home/devel/rubygem-state_machine

rubygem-state_machine

1.2.0devel

Support for creating state machines for attributes on any Ruby class

State machines make it simple to manage the behavior of a class. Too often, the state of an object is kept by creating multiple boolean attributes and deciding how to behave based on the values. state_machine simplifies this design by introducing the various parts of a real state machine, including states, events, transitions, and callbacks. However, the api is designed to be so simple you do not even need to know what a state machine is.

$pkg install rubygem-state_machine
www.pluginaweek.org
Origin
devel/rubygem-state_machine
Size
2.20MiB
License
MIT
Maintainer
ruby@FreeBSD.org
Dependencies
2 packages
Required by
0 packages

Dependencies (2)