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

#nextObject

if next?, return the state

Raises:

  • (NotImplementedError)


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?

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

def next?
  raise NotImplementedError
end