lib/rubo/brain.rb
# Reset the interval between save function calls.
#
# @param seconds [Numeric] An Integer of seconds between saves.
Reset the interval between save function calls.
Reset the interval between save function calls .
def reset_save_interval(seconds)
      @save_thread.exit if @save_thread
      @save_thread = Thread.start do
        loop do
          sleep seconds
          save if auto_save
        end
      end
    end
def reset_save_interval ( seconds ) @save_thread . exit if @save_thread @save_thread = Thread . start do loop do sleep seconds save if auto_save end end end
Reset the interval between save function calls.
Reset the interval between save function calls .
seconds
An Integer of seconds between saves.
An Integer of seconds between saves .