# File lib/god/meddle.rb, line 19 def watch w = Watch.new(self) yield(w) # ensure the new watch has a unique name unless @watches.select { |x| x.name == w.name }.empty? abort "Duplicate Watch with name '#{w.name}'" end # add to list of watches @watches << w end