Sha256: c2c82dc0ff26ade6425c8b053f447626ae7f08a89415ae60593ec86ee5b38d71

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

module Chic
  # A configuration object used to define various options.
  #
  # * This is usually not instantiated directly, but rather by way of calling +Chic.configure+.
  #
  # @see Chic.configure
  class Configuration
    FORMATTERS = {
      nil: Formatters::Nil
    }.freeze

    attr_writer :logger,
                :formatters

    def formatters
      @formatters ||= FORMATTERS.dup
    end

    def logger
      @logger ||= Logger.new($stdout)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chic-0.2.0 lib/chic/configuration.rb