5 attr_accessor :interval
11 attr_accessor :watches, :timer
13 # Create a new instance that is ready for use by a configuration file
14 def initialize(options = {})
16 self.server = Server.new(self, options[:host], options[:port])
17 self.timer = Timer.new
20 # Instantiate a new, empty Watch object and pass it to the mandatory
21 # block. The attributes of the watch will be set by the configuration
36 # @watches.each do |w|
37 # threads << Thread.new do
45 # threads.each { |t| t.join }