Sha256: 445914fe43a01efe50b36d1659e71cc77a59512bdcf507ebcc83e985420c882a
Contents?: true
Size: 252 Bytes
Versions: 13
Compression:
Stored size: 252 Bytes
Contents
# Simple loop with its own custom run method # # Does nothing aside from printing loop's name, pid and current time every second # class SimpleLoop < Loops::Base def run with_period_of(1) do debug(Time.now) sleep(5) end end end
Version data entries
13 entries across 13 versions & 2 rubygems