Class: Shoes::TimerBase
- Inherits:
-
Object
- Object
- Shoes::TimerBase
- Defined in:
- lib/blue_shoes/timer_base.rb
Instance Method Summary collapse
-
#start ⇒ Object
Both types of timers automatically start themselves, so there’s no need to use this normally.
-
#stop ⇒ Object
Pauses the animation or timer.
-
#toggle ⇒ Object
If the animation or timer is stopped, it is started.
Instance Method Details
#start ⇒ Object
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 |
#stop ⇒ Object
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 |
#toggle ⇒ Object
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 |