module Topaz::Pausable
Pause functionality
Public Instance Methods
pause()
click to toggle source
Pause the clock @return [Boolean]
# File lib/topaz/pausable.rb, line 8 def pause @pause = true end
paused?()
click to toggle source
Is this clock paused? @return [Boolean]
# File lib/topaz/pausable.rb, line 20 def paused? @pause end
Also aliased as: pause?
toggle_pause()
click to toggle source
Toggle pausing the clock @return [Boolean]
# File lib/topaz/pausable.rb, line 27 def toggle_pause @pause = !@pause end
unpause()
click to toggle source
Unpause the clock @return [Boolean]
# File lib/topaz/pausable.rb, line 14 def unpause @pause = false end