Class: Shoes::TimerBase

Inherits:
Object
  • Object
show all
Defined in:
lib/blue_shoes/timer_base.rb

Direct Known Subclasses

Animation, Every, Timer

Instance Method Summary collapse

Instance Method Details

#startObject

Both types of timers automatically start themselves, so there’s no need to use this normally. But if you stop a timer and would like to start it up again, then by all means: use this!



4
5
6
7
# File 'lib/blue_shoes/timer_base.rb', line 4

def start
  # returns self
  throw NotImplementedError
end

#stopObject

Pauses the animation or timer. In the case of a one-shot timer that’s already happened, it’s already stopped and this method will have no effect.



10
11
12
13
# File 'lib/blue_shoes/timer_base.rb', line 10

def stop
  # returns self
  throw NotImplementedError
end

#toggleObject

If the animation or timer is stopped, it is started. Otherwise, if it is already running, it is stopped.



16
17
18
19
# File 'lib/blue_shoes/timer_base.rb', line 16

def toggle
  # returns self
  throw NotImplementedError
end