Sha256: 622579a5f8bc023d6223e596a3318219960c563c03167b85314bcabdcb7b3cbf

Contents?: true

Size: 320 Bytes

Versions: 4

Compression:

Stored size: 320 Bytes

Contents

module SlackRubyBotServer
  module Config
    extend self

    attr_accessor :server_class

    def reset!
      self.server_class = SlackRubyBotServer::Server
    end

    reset!
  end

  class << self
    def configure
      block_given? ? yield(Config) : Config
    end

    def config
      Config
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.5.0 lib/slack-ruby-bot-server/config.rb
slack-ruby-bot-server-0.4.0 lib/slack-ruby-bot-server/config.rb
slack-ruby-bot-server-0.3.1 lib/slack-ruby-bot-server/config.rb
slack-ruby-bot-server-0.3.0 lib/slack-ruby-bot-server/config.rb