Commit fa278898 authored by John E. Vincent's avatar John E. Vincent

updating example README

parent 6b8788c5
...@@ -19,11 +19,12 @@ Essentially the idea is that you tap into the Redis subscription with a defined ...@@ -19,11 +19,12 @@ Essentially the idea is that you tap into the Redis subscription with a defined
### Example ### Example
require './watcher-idea.rb' require './watcher-idea.rb'
f = Noah::Watcher.new do |f|
f.pattern = "noah.Configuration" Noah::Watcher.watch do
f.destination = Proc.new {|x| something_with(x)} pattern "noah.Configuration"
destination Proc.new {|x| something_with(x)}
run!
end end
f.run!
## logger.rb ## logger.rb
An example using logger as a watcher. Pretty straighforward. An example using logger as a watcher. Pretty straighforward.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment