Module: StateFu::StateArray
- Includes:
- ArrayWithSymbolAccessor
- Defined in:
- lib/support/arrays.rb
Overview
Array extender. Used by Machine to keep a list of states.
Instance Method Summary collapse
-
#next ⇒ Object
if next?, return the state.
-
#next? ⇒ Boolean
is there exactly one possible event to fire, with a single target event?.
Methods included from ArrayWithSymbolAccessor
#[], #all, #except, #names, #only, #rand
Instance Method Details
#next ⇒ Object
if next?, return the state
82 83 84 |
# File 'lib/support/arrays.rb', line 82 def next raise NotImplementedError end |
#next? ⇒ Boolean
is there exactly one possible event to fire, with a single target event?
77 78 79 |
# File 'lib/support/arrays.rb', line 77 def next? raise NotImplementedError end |