Module: Wonkavision::Plugins::Callbacks

Defined in:
lib/wonkavision/plugins/callbacks.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Callback, CallbackChain

Class Method Summary collapse

Class Method Details

.configure(handler, options) ⇒ Object



10
11
12
13
14
15
# File 'lib/wonkavision/plugins/callbacks.rb', line 10

def self.configure(handler,options)
  handler.define_wonkavision_callbacks :before_event,
                           :after_event
  
  handler.alias_method_chain :handle_event, :callbacks
end