Sha256: 5528e33e1af3fbe8874feb46c3491b14663d20c226bb015ce692988b09e46936
Contents?: true
Size: 348 Bytes
Versions: 13
Compression:
Stored size: 348 Bytes
Contents
#encoding: UTF-8 class Redis module Stream module Type PING = "PING".freeze PONG = "PONG".freeze ACTION = "ACTION".freeze def self.exists?(type) self.constants.include?(type.upcase.to_sym) end def self.to_s self.constants.map { |m| m.to_s.downcase }.join(', ') end end end end
Version data entries
13 entries across 13 versions & 1 rubygems