Sha256: e63c3a9e48df1f9e38bf6f82b25d859fe9568905221cfffcc11e5957fb26689a

Contents?: true

Size: 310 Bytes

Versions: 12

Compression:

Stored size: 310 Bytes

Contents

module Bot
  @@configuration = nil

  def self.configure
    @@configuration = Configuration.new

    if block_given?
      yield configuration
    end

    configuration
  end

  def self.configuration
    @@configuration || configure
  end

  class Configuration
    attr_accessor :adapter, :redis
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bot-0.0.41 lib/bot/configuration.rb
bot-0.0.40 lib/bot/configuration.rb
bot-0.0.39 lib/bot/configuration.rb
bot-0.0.38 lib/bot/configuration.rb
bot-0.0.37 lib/bot/configuration.rb
bot-0.0.35 lib/bot/configuration.rb
bot-0.0.34 lib/bot/configuration.rb
bot-0.0.33 lib/bot/configuration.rb
bot-0.0.32 lib/bot/configuration.rb
bot-0.0.31 lib/bot/configuration.rb
bot-0.0.30 lib/bot/configuration.rb
bot-0.0.29 lib/bot/configuration.rb