module AWS::Flow::Core::SimpleDFA::InstanceMethods

@api private

Attributes

current_state[RW]

Public Instance Methods

consume(symbol) click to toggle source

@api private

# File lib/aws/flow/simple_dfa.rb, line 83
def consume(symbol)
  @current_state ||= self.class.get_start_state
  func_to_call = self.class.get_transitions[[@current_state, symbol]]
  raise "This is not a legal transition" unless func_to_call
  func_to_call.call(self)
end