Module: Nyoibo::Callback::Runner

Included in:
Nyoibo
Defined in:
lib/nyoibo/callback.rb

Instance Method Summary collapse

Instance Method Details

#run_callback(prefix, path = "/", *args) ⇒ Object



24
25
26
27
# File 'lib/nyoibo/callback.rb', line 24

def run_callback(prefix, path="/", *args)
  block = Nyoibo::Callback.callbacks[prefix][path]
  block.call(*args) if block
end