Method: Newman::Application#callback

Defined in:
lib/newman/application.rb

#callback(action, filter) ⇒ Object

‘Newman::Application#callback` is a low level feature for defining custom callbacks. For ideas on how to roll your own filters with it, see the implementation of the `Newman::Filters` module.



193
194
195
196
# File 'lib/newman/application.rb', line 193

def callback(action, filter)
  callbacks << { :filter   => filter, 
                 :action   => action }
end