Module: SlackRubyBot::Hooks::HookSupport::ClassMethods
- Defined in:
- lib/slack-ruby-bot/hooks/hook_support.rb
Instance Method Summary collapse
Instance Method Details
#on(event_name, &block) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/slack-ruby-bot/hooks/hook_support.rb', line 13 def on(event_name, &block) self.hook_blocks ||= {} self.hook_blocks[event_name] ||= [] self.hook_blocks[event_name] << block end |