Sha256: 62ed8e90dc3656a50bc9d659abeb72f940010d7f6ce49ef108bb54b6a849a873
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
Every Now And Then ================== It's quite simple, really - it lets you do something every specified interval of time. When supplied with a block, it yields the iteration count (starts at zero). If the operation inside the block takes longer than the specified interval, then the next iteration will begin immediately after the last. To exit, simply break out of the loop. Examples ======== require 'enat' every 4.2.minutes do |i| puts "wheee! i've done this #{i} times!" break if i > 5 end Installation ------------ $ bundle install $ gem build enat.gemspec $ gem install enat
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enat-0.1.0 | README.markdown |