# File karel/robot_world_base.rb, line 75 def set_up_thread(*robots, &action) if block_given? @Runnables << Thread.new{Thread.stop; action.call} else robots.each {|robot| @Runnables << Thread.new {Thread.stop; robot.run_task}} end end