Module: Talks::Hooks
- Defined in:
- lib/talks/hooks.rb
Class Method Summary collapse
Class Method Details
.create(args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/talks/hooks.rb', line 5 def create(args) engine = Talks.config.engine , args = (args.dup) command_name = command args voice, , = parse , command_name before_hook = hook(engine, voice, ) after_hook = hook(engine, voice, ) command = args.join(' ') [before_hook, command, after_hook].join('; ') end |