Method: CatchBox::Fanout#on

Defined in:
lib/catch_box/fanout.rb

#on(pattern, callable = nil, &block) ⇒ Object



58
59
60
61
62
# File 'lib/catch_box/fanout.rb', line 58

def on(pattern, callable = nil, &block)
  config.on.call(
    _fanout, pattern, callable || block
  )
end