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)

Methods included from ArrayWithSymbolAccessor

#[], #all, #except, #names, #only, #rand

Instance Method Details

- (Object) next

if next?, return the state

Raises:

  • (NotImplementedError)


82
83
84
# File 'lib/support/arrays.rb', line 82

def next
  raise NotImplementedError
end

- (Boolean) next?

is there exactly one possible event to fire, with a single target event?

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


77
78
79
# File 'lib/support/arrays.rb', line 77

def next?
  raise NotImplementedError
end