Registry / utility / statesman

statesman

JSON →
library13.1.0rbrubygemsunverified

A statesman-like state machine library for Ruby objects.

gem install statesman
INSTALL
IMPORT
SIG · STATESMAN
S
statesman
utilityrubyv13.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Statesman
require 'statesman'

Define and use a state machine with Statesman.

require 'statesman' class OrderStateMachine include Statesman::Machine state :pending, initial: true state :confirmed state :shipped transition from: :pending, to: :confirmed transition from: :confirmed, to: :shipped end order = Order.new order.state_machine.transition_to!(:confirmed)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
13.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
statesman — gem install statesman · libregistry