Exception: ScripTTY::Util::FSM::NoMatch

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/scriptty/util/fsm.rb

Overview

Exception for no matching state

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, input_sequence, state) ⇒ NoMatch

Returns a new instance of NoMatch.



25
26
27
28
29
# File 'lib/scriptty/util/fsm.rb', line 25

def initialize(message, input_sequence, state)
  @input_sequence = input_sequence
  @state = state
  super(message)
end

Instance Attribute Details

#input_sequenceObject (readonly)

Returns the value of attribute input_sequence.



24
25
26
# File 'lib/scriptty/util/fsm.rb', line 24

def input_sequence
  @input_sequence
end

#stateObject (readonly)

Returns the value of attribute state.



24
25
26
# File 'lib/scriptty/util/fsm.rb', line 24

def state
  @state
end