Class: MadChatter::Extension
- Inherits:
-
Object
- Object
- MadChatter::Extension
- Includes:
- Actions
- Defined in:
- lib/mad_chatter/extension.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Actions
#send_action, #send_message, #send_status_message, #stop_message_handling
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/mad_chatter/extension.rb', line 5 def @message end |
Class Method Details
.inherited(klass) ⇒ Object
7 8 9 |
# File 'lib/mad_chatter/extension.rb', line 7 def self.inherited(klass) MadChatter. << klass.new end |
Instance Method Details
#handle(message) ⇒ Object
11 12 13 |
# File 'lib/mad_chatter/extension.rb', line 11 def handle() # subclasses should override this function, or use the on_message shortcut method end |