Sha256: 24f65d47faa784510600ef56be6f586a7470cb249d43c2d2cf47f908628e56d3
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
require 'polling/version' require 'polling/confirm' require 'polling/sleep' require 'polling/target' module Polling module_function def run(arr, debug=false) start = true loop do arr.each do |time| time = Confirm::check_value(time) Sleep::exec Target::create_time(0, debug) if start Sleep::exec Target::create_time(time, debug) unless start start = false yield end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polling-0.0.2 | lib/polling.rb |