class Transition

Public Class Methods

new(new_state, new_char, dir) click to toggle source
# File bin/tm, line 48
def initialize(new_state, new_char, dir)
  @new_state = new_state.to_sym
  @new_char = new_char
  @dir = dir
end

Public Instance Methods

apply() { |new_char, dir| ... } click to toggle source
# File bin/tm, line 54
def apply
  print "#{@new_state} -> " if VERBOSE
  yield @new_char, @dir
  return @new_state
end