class AjaxChatPlugin
This file includes the following classes
-
AjaxChatPlugin
Base class for plugins -
DummyRequest
(used for testing) -
ChatCore
(chat engine) -
DummyRws
(used for testing) -
AjaxChat
(the main class)
Public Class Methods
new(ac, settings={}, debug: false)
click to toggle source
ac = ajaxchat object
# File lib/h2g_ajaxchat.rb, line 29 def initialize(ac, settings={}, debug: false) @ac, @settings, @debug = ac, settings, debug end
Public Instance Methods
apply()
click to toggle source
Customises the ajax chat html etc;
# File lib/h2g_ajaxchat.rb, line 35 def apply() end
messages()
click to toggle source
messages from the plugin to be added to the chat timeline
# File lib/h2g_ajaxchat.rb, line 40 def messages() [] end
on_newmessage(time, userid, username, msg)
click to toggle source
messages from the chat timeline
# File lib/h2g_ajaxchat.rb, line 46 def on_newmessage(time, userid, username, msg) end