Method: TkTimer#reset
- Defined in:
- lib/tk/timer.rb
#reset(*reset_args) ⇒ Object
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 |
# File 'lib/tk/timer.rb', line 412 def reset(*reset_args) restart() if @running if @init_proc @return_value = @init_proc.call(self) else @return_value = nil end @current_pos = 0 @current_args = @init_args @current_script = [] @set_next = false if @in_callback self end |