BSD Ports

devel/rubygem-state_machine 1.2.0 DragonFly

Support for creating state machines for attributes on any Ruby class

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, rubygems
Package size
473.9 KiB, 2250.0 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlydevel/rubygem-state_machine1.2.0
FreeBSDdevel/rubygem-state_machine1.2.0

Install

Binary package:

pkg install rubygem-state_machine

From DPorts:

cd /usr/dports/devel/rubygem-state_machine && make install clean

Dependencies

Run dependencies 2

No port depends on this one.