Module: SlackRubyBot::Hooks::Base

Included in:
Hello, Message
Defined in:
lib/slack-ruby-bot/hooks/base.rb

Instance Method Summary collapse

Instance Method Details

#included(caller) ⇒ Object



4
5
6
7
# File 'lib/slack-ruby-bot/hooks/base.rb', line 4

def included(caller)
  caller.hooks ||= []
  caller.hooks << name.demodulize.underscore.to_sym
end