Skip to content

Running Programmatically

rdp edited this page Sep 13, 2010 · 6 revisions

Example


require 'watchr'
script = Watchr::Script.new
script.watch('foo') { puts 'bar' } # this call doesn't block
Clone this wiki locally