Sha256: 18009b0911deec7b96e99036f10405bad775119772baef15c2272a0106311ef2
Contents?: true
Size: 328 Bytes
Versions: 2
Compression:
Stored size: 328 Bytes
Contents
module MadChatter class Extension include MadChatter::Actions attr_accessor :message def self.inherited(klass) MadChatter.message_listeners << klass.new end def handle(message) # subclasses should override this function, or use the on_message shortcut method end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mad_chatter-0.3.4 | lib/mad_chatter/extension.rb |
mad_chatter-0.3.3 | lib/mad_chatter/extension.rb |