# File lib/event/event.rb, line 207 def dispatch(handler, type = nil) type = @type if type.nil? if handler.is_a?(Qpid::Proton::Handler::WrappedHandler) Cproton.pn_handler_dispatch(handler.impl, @impl, type.number) else result = Qpid::Proton::Event.dispatch(handler, type.method, self) if (result != "DELEGATED") && handler.respond_to?(:handlers) handler.handlers.each do |hndlr| self.dispatch(hndlr) end end end end