Sha256: 35a616aa143b84d6705ad9e724d61b5f9d0923ce94929dc9f2745e08965309c8

Contents?: true

Size: 344 Bytes

Versions: 11

Compression:

Stored size: 344 Bytes

Contents

module Metanorma
  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 ||= [:warning, :error, :fatal]
    end
  end

  extend Config
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
metanorma-1.3.1 lib/metanorma/config.rb
metanorma-1.3.0 lib/metanorma/config.rb
metanorma-1.2.8 lib/metanorma/config.rb
metanorma-1.2.7 lib/metanorma/config.rb
metanorma-1.2.6 lib/metanorma/config.rb
metanorma-1.2.6pre lib/metanorma/config.rb
metanorma-1.2.5 lib/metanorma/config.rb
metanorma-1.2.4 lib/metanorma/config.rb
metanorma-1.2.3 lib/metanorma/config.rb
metanorma-1.2.2 lib/metanorma/config.rb
metanorma-1.2.1 lib/metanorma/config.rb