Sha256: 5e2efde591c5db83d11c3efbbe59e700cd6cc17d64b3526de7a6820919990be8
Contents?: true
Size: 405 Bytes
Versions: 3
Compression:
Stored size: 405 Bytes
Contents
module Miu module Messages class << self def types @types ||= {} end def register(type, klass) types[type.to_s] = klass end def guess(type) types[type.to_s] || Unknown end end end end require 'miu/messages/base' require 'miu/messages/unknown' require 'miu/messages/text' require 'miu/messages/enter' require 'miu/messages/leave'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
miu-0.2.3 | lib/miu/messages.rb |
miu-0.2.2 | lib/miu/messages.rb |
miu-0.2.1 | lib/miu/messages.rb |