class Timer
Attributes
time[R]
Public Class Methods
new(time, message = '')
click to toggle source
# File lib/tabata_timer/timer.rb, line 4 def initialize(time, message = '') @time = time @message = message end
Public Instance Methods
==(other)
click to toggle source
# File lib/tabata_timer/timer.rb, line 14 def ==(other) self.time == other.time end
start()
click to toggle source
# File lib/tabata_timer/timer.rb, line 9 def start `say #{@message}` sleep(@time) end