Sha256: dcd3746b7553a16d2dd5832a0d04691d713eb48a5227c6a5ede790250fcd5518
Contents?: true
Size: 317 Bytes
Versions: 5
Compression:
Stored size: 317 Bytes
Contents
module PRSS class Watcher def initialize(feed) @feed = feed end def start(interval, output) loop = Thread.new do loop do @feed.download_to(output) sleep(interval) end end Kernel.trap( "INT" ) { loop.exit } loop.join end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
prss-0.2.2 | lib/prss/watcher.rb |
prss-0.2.1 | lib/prss/watcher.rb |
prss-0.2.0 | lib/prss/watcher.rb |
prss-0.1.1 | lib/prss/watcher.rb |
prss-0.1.0 | lib/prss/watcher.rb |