module EMJack module Handler class Deleted RESPONSE = /^DELETED\r\n/ def self.handles?(response) response =~ RESPONSE end def self.handle(deferrable, response, body, conn=nil) return false unless response =~ RESPONSE deferrable.succeed true end EMJack::Connection.register_handler(EMJack::Handler::Deleted) end end end