Class: AjaxChatPlugin
- Inherits:
-
Object
- Object
- AjaxChatPlugin
- Defined in:
- lib/h2g_ajaxchat.rb
Instance Method Summary collapse
-
#apply ⇒ Object
Customises the ajax chat html etc;.
-
#initialize(ac, settings = {}, debug: false) ⇒ AjaxChatPlugin
constructor
ac = ajaxchat object.
-
#messages ⇒ Object
messages from the plugin to be added to the chat timeline.
-
#on_newmessage(time, userid, username, msg) ⇒ Object
messages from the chat timeline.
Constructor Details
#initialize(ac, settings = {}, debug: false) ⇒ AjaxChatPlugin
ac = ajaxchat object
29 30 31 |
# File 'lib/h2g_ajaxchat.rb', line 29 def initialize(ac, settings={}, debug: false) @ac, @settings, @debug = ac, settings, debug end |
Instance Method Details
#apply ⇒ Object
Customises the ajax chat html etc;
35 36 |
# File 'lib/h2g_ajaxchat.rb', line 35 def apply() end |
#messages ⇒ Object
messages from the plugin to be added to the chat timeline
40 41 42 |
# File 'lib/h2g_ajaxchat.rb', line 40 def () [] end |
#on_newmessage(time, userid, username, msg) ⇒ Object
messages from the chat timeline
46 47 |
# File 'lib/h2g_ajaxchat.rb', line 46 def (time, userid, username, msg) end |