Class: Sicily::Monitor

Inherits:
Object
  • Object
show all
Defined in:
lib/sicily/monitor.rb

Instance Method Summary collapse

Instance Method Details

#on(path, &user_rule_block) ⇒ Object



10
11
12
13
# File 'lib/sicily/monitor.rb', line 10

def on(path, &user_rule_block)
  attach_monitor(path, &user_rule_block)
  consume_all(path, &user_rule_block)
end