examples/turing.rb in dslkit-0.2.10 vs examples/turing.rb in dslkit-0.2.11

- old
+ new

@@ -167,16 +167,16 @@ end end end class BaseMachine - def initialize(program = nil) + def initialize(program = nil, &block) @states = [] if program block_given? and raise "use either program source string or a block" interpret program else - instance_eval(&Proc.new) + instance_eval(&block) end end def step(*tapes) @stepping = true