Class: Rooster::EggTimer
- Inherits:
-
Object
- Object
- Rooster::EggTimer
- Defined in:
- lib/rooster/egg_timer.rb
Constant Summary collapse
- ONE_MINUTE =
60
Instance Method Summary collapse
-
#initialize(minutes, text) ⇒ EggTimer
constructor
Start your egg timer.
Constructor Details
#initialize(minutes, text) ⇒ EggTimer
Start your egg timer
Example:
>> rooster 10, "remind me to make coffee in ten minutes"
Arguments:
minutes: (Integer)
text: (String)
15 16 17 18 19 20 |
# File 'lib/rooster/egg_timer.rb', line 15 def initialize minutes, text @text = text @minutes = minutes.to_i run end |