Sha256: dee4b0c647fa6b09c638c80073dabae21d235b77b7759740ad52c8806b633ae5

Contents?: true

Size: 327 Bytes

Versions: 179

Compression:

Stored size: 327 Bytes

Contents

module Expressir
  module Config
    def configure
      if block_given?
        yield configuration
      end
    end

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

  class Configuration
    attr_accessor :logs

    def initialize
      @logs ||= %i(error)
    end
  end

  extend Config
end

Version data entries

179 entries across 179 versions & 1 rubygems

Version Path
expressir-1.2.4 lib/expressir/config.rb
expressir-1.2.4-x86_64-linux lib/expressir/config.rb
expressir-1.2.4-x86_64-darwin lib/expressir/config.rb
expressir-1.2.4-x86-mingw32 lib/expressir/config.rb
expressir-1.2.4-x86-linux lib/expressir/config.rb
expressir-1.2.4-x64-mingw32 lib/expressir/config.rb
expressir-1.2.4-arm64-darwin lib/expressir/config.rb
expressir-1.2.4-aarch64-linux lib/expressir/config.rb
expressir-1.2.3 lib/expressir/config.rb
expressir-1.2.3-x86_64-linux lib/expressir/config.rb
expressir-1.2.3-x86_64-darwin lib/expressir/config.rb
expressir-1.2.3-x86-mingw32 lib/expressir/config.rb
expressir-1.2.3-x86-linux lib/expressir/config.rb
expressir-1.2.3-x64-mingw32 lib/expressir/config.rb
expressir-1.2.3-arm64-darwin lib/expressir/config.rb
expressir-1.2.3-aarch64-linux lib/expressir/config.rb
expressir-1.2.1 lib/expressir/config.rb
expressir-1.2.1-x86_64-linux lib/expressir/config.rb
expressir-1.2.1-x86_64-darwin lib/expressir/config.rb
expressir-1.2.1-x86-mingw32 lib/expressir/config.rb