class TuringMachine::Instructions
Public: The instruction table of a Turing machine.
Public Class Methods
new(table)
click to toggle source
# File lib/turing_machine/instructions.rb, line 6 def initialize(table) @table = table end
Public Instance Methods
get(symbol, state)
click to toggle source
# File lib/turing_machine/instructions.rb, line 10 def get(symbol, state) @table[[symbol, state]] end