Sha256: c61440b8f73821f087f940d272c62b513e7a9664e94c4bc3c0633a13df617a48

Contents?: true

Size: 257 Bytes

Versions: 5

Compression:

Stored size: 257 Bytes

Contents

module Slack
  module Config
    extend self

    attr_accessor :token

    def reset
      self.token = nil
    end
  end

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

    def config
      Config
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
slack-ruby-client-bhe-0.5.5 lib/slack/config.rb
slack-ruby-client-bhe-0.5.4 lib/slack/config.rb
slack-ruby-client-0.6.0 lib/slack/config.rb
slack-ruby-client-0.5.4 lib/slack/config.rb
slack-ruby-client-0.5.3 lib/slack/config.rb