lib/serfx/utils/handler.rb
def run
        event = SerfEvent.new
        callbacks[event.type.downcase.to_sym].each do |cbk|
          if cbk.name
            cbk.block.call(event) if cbk.name === event.name
          else
            cbk.block.call(event)
          end
        end
      end
# execute callbacks registerd using `on`
execute callbacks registerd using `on`
execute callbacks registerd using ` on `
def run
        event = SerfEvent.new
        callbacks[event.type.downcase.to_sym].each do |cbk|
          if cbk.name
            cbk.block.call(event) if cbk.name === event.name
          else
            cbk.block.call(event)
          end
        end
      end
def run event = SerfEvent . new callbacks [ event . type . downcase . to_sym ] . each do | cbk | if cbk . name cbk . block . call ( event ) if cbk . name === event . name else cbk . block . call ( event ) end end end
execute callbacks registerd using `on`
execute callbacks registerd using ` on `