Sha256: 5aa88da10325f4b01a96c500b2354d09aaf2891fd21e43d1b491fd6ab3a86255

Contents?: true

Size: 336 Bytes

Versions: 25

Compression:

Stored size: 336 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]
    end
  end

  extend Config
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
metanorma-1.2.0 lib/metanorma/config.rb
metanorma-1.1.7 lib/metanorma/config.rb
metanorma-1.1.6 lib/metanorma/config.rb
metanorma-1.1.5 lib/metanorma/config.rb
metanorma-1.1.4 lib/metanorma/config.rb
metanorma-1.1.3 lib/metanorma/config.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-1.1.2/lib/metanorma/config.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-1.1.2/lib/metanorma/config.rb
metanorma-1.1.2 lib/metanorma/config.rb
metanorma-1.1.1 lib/metanorma/config.rb
metanorma-1.1.0 lib/metanorma/config.rb
metanorma-1.0.6 lib/metanorma/config.rb
metanorma-1.0.5 lib/metanorma/config.rb
metanorma-1.0.4 lib/metanorma/config.rb
metanorma-1.0.3 lib/metanorma/config.rb
metanorma-1.0.2 lib/metanorma/config.rb
metanorma-1.0.1 lib/metanorma/config.rb
metanorma-1.0.0 lib/metanorma/config.rb
metanorma-0.3.18 lib/metanorma/config.rb
metanorma-0.3.17 lib/metanorma/config.rb