lib/ludy/timer.rb in ludy-0.1.9 vs lib/ludy/timer.rb in ludy-0.1.10
- old
+ new
@@ -2,9 +2,10 @@
module Ludy
# whenever a Timer was timeout, it was thrown
class Timeout < Exception; end
# simple and stupid timer for puzzle_generator...
class Timer
+ # create a timer for timeout seconds.
def initialize timeout
@timeout = timeout
end
# start ticking
def start