Sha256: 5f03e560649d719e71c006a173d404e779af69e0ff2548e56bb6bc5d75b340e5

Contents?: true

Size: 484 Bytes

Versions: 3

Compression:

Stored size: 484 Bytes

Contents

module AlexCodebreaker
  class Configuration
    DEFAULT_WINNERS_FOLDER_PATH = 'games/winners/'.freeze
    DEFAULT_GAMES_FOLDER_PATH = 'games/'.freeze

    attr_accessor :winners_folder_path, :games_folder_path

    def initialize
      @winners_folder_path = DEFAULT_WINNERS_FOLDER_PATH
      @games_folder_path = DEFAULT_GAMES_FOLDER_PATH
    end
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield configuration
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alex_codebreaker-0.2.1 lib/alex_codebreaker/configuration.rb
alex_codebreaker-0.2.0 lib/alex_codebreaker/configuration.rb
alex_codebreaker-0.1.13 lib/alex_codebreaker/configuration.rb