Sha256: 14b8c18adc87aef18453e9296069615961e9816bcc894a8a06c9e00346542212

Contents?: true

Size: 636 Bytes

Versions: 8

Compression:

Stored size: 636 Bytes

Contents

require "metanorma"
require "metanorma-generic"
require_relative "./cc/processor"

module Metanorma
  module Cc
    class Configuration < Metanorma::Generic::Configuration
      def initialize(*args)
        super
      end
    end

    class << self
      extend Forwardable

      attr_accessor :configuration

      Configuration::CONFIG_ATTRS.each do |attr_name|
        def_delegator :@configuration, attr_name
      end

      def configure
        self.configuration ||= Configuration.new
        yield(configuration)
      end
    end

    configure {}
  end
end
Metanorma::Registry.instance.register(Metanorma::Cc::Processor)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
metanorma-cc-2.5.11 lib/metanorma/cc.rb
metanorma-cc-2.5.10 lib/metanorma/cc.rb
metanorma-cc-2.5.9 lib/metanorma/cc.rb
metanorma-cc-2.5.8 lib/metanorma/cc.rb
metanorma-cc-2.5.7 lib/metanorma/cc.rb
metanorma-cc-2.5.6 lib/metanorma/cc.rb
metanorma-cc-2.5.5 lib/metanorma/cc.rb
metanorma-cc-2.5.4 lib/metanorma/cc.rb