Method: TkTimer#restart
- Defined in:
- lib/tk/timer.rb
#restart(*restart_args, &b) ⇒ Object
430 431 432 433 434 435 436 437 |
# File 'lib/tk/timer.rb', line 430 def restart(*restart_args, &b) cancel if @running if restart_args.empty? && !b start(@init_sleep, @init_proc, *@init_args) else start(*restart_args, &b) end end |