Module: Talks::Hooks
- Defined in:
- lib/talks/hooks.rb,
lib/talks/hooks/base.rb,
lib/talks/hooks/voice.rb,
lib/talks/hooks/after_notify.rb,
lib/talks/hooks/after_message.rb,
lib/talks/hooks/before_notify.rb,
lib/talks/hooks/before_message.rb
Defined Under Namespace
Classes: AfterMessage, AfterNotify, Base, BeforeMessage, BeforeNotify, Voice
Class Method Summary collapse
Class Method Details
.create(args) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/talks/hooks.rb', line 13 def create(args) , args = (args.dup) command_name = command args voice, , , before_notify, after_notify = \ parse , command_name before_hook = hook(voice, ) after_hook = hook(voice, ) command = args.join(' ') [before_notify, [before_hook, command, after_hook].join('; '), after_notify] end |