Sha256: ff493e35d9ab9c519501a95883c70e423ee83a648a9eb98ba5c5fb6631e44889

Contents?: true

Size: 192 Bytes

Versions: 21

Compression:

Stored size: 192 Bytes

Contents

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

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
slack-ruby-bot-bhe-0.5.5.3 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.7.0 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.6.2 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.6.1 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.6.0 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.5.5 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.5.4 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.5.3 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.5.2 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.5.1 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.5.0 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.4.5 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.4.4 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.4.3 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.4.2 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.4.1 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.4.0 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.3.1 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.3.0 lib/slack-ruby-bot/hooks/base.rb
slack-ruby-bot-0.2.0 lib/slack-ruby-bot/hooks/base.rb