Registry / utility / micromachine

micromachine

JSON →
library3.0.0rbrubygemsunverified

Minimal finite state machine implementation in Ruby with less than 50 lines of code.

gem install micromachine
INSTALL
IMPORT
SIG · MICROMACHINE
M
micromachine
utilityrubyv3.0.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.

MicroMachine
require 'micromachine'

Define and use a simple finite state machine.

require 'micromachine' machine = MicroMachine.new(:pending) machine.when(:start, pending: :running) machine.trigger(:start) puts machine.state
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

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