Sha256: abcb0de8a4bd0caea4496136bbc575b329c1b2f1e0f53c555ba7d6a38b5a7dc5

Contents?: true

Size: 594 Bytes

Versions: 83

Compression:

Stored size: 594 Bytes

Contents

require "metanorma"
require "metanorma-generic"
require "metanorma/ribose/processor"

module Metanorma
  module Ribose
    class Configuration < Metanorma::Generic::Configuration
    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::Ribose::Processor)

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
metanorma-ribose-1.7.6 lib/metanorma/ribose.rb
metanorma-ribose-1.7.5 lib/metanorma/ribose.rb
metanorma-ribose-1.7.4 lib/metanorma/ribose.rb