Module: Lijab::Hooks

Defined in:
lib/lijab/hooks.rb

Class Method Summary collapse

Class Method Details

.on_connect(&block) ⇒ Object


100
101
102
# File 'lib/lijab/hooks.rb', line 100

def on_connect(&block)
   HooksHandler::on_connect.push(block)
end

.on_disconnect(&block) ⇒ Object


104
105
106
# File 'lib/lijab/hooks.rb', line 104

def on_disconnect(&block)
   HooksHandler::on_disconnect.push(block)
end

.on_incoming_message(&block) ⇒ Object


84
85
86
# File 'lib/lijab/hooks.rb', line 84

def on_incoming_message(&block)
   HooksHandler::on_incoming_message.push(block)
end

.on_post_send_message(&block) ⇒ Object


96
97
98
# File 'lib/lijab/hooks.rb', line 96

def on_post_send_message(&block)
   HooksHandler::on_post_send_message.push(block)
end

.on_pre_send_message(&block) ⇒ Object


92
93
94
# File 'lib/lijab/hooks.rb', line 92

def on_pre_send_message(&block)
   HooksHandler::on_pre_send_message.push(block)
end

.on_presence(&block) ⇒ Object


88
89
90
# File 'lib/lijab/hooks.rb', line 88

def on_presence(&block)
   HooksHandler::on_presence.push(block)
end