Sha256: 716330d5230aff801f88c629b215486132bec1e5746b6786193b0ff93d0e720b

Contents?: true

Size: 725 Bytes

Versions: 7

Compression:

Stored size: 725 Bytes

Contents

require "metanorma"
require "metanorma-generic"
require "metanorma/vsd/processor"

module Metanorma
  module Vsd
    class Configuration < Metanorma::Generic::Configuration
      def initialize(*args)
        super
        html_configs ||= File.join(File.expand_path('config', __dir__), 'vsd_html.yml')
      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::Vsd::Processor)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
metanorma-vsd-1.0.10 lib/metanorma/vsd.rb
metanorma-vsd-1.0.9 lib/metanorma/vsd.rb
metanorma-vsd-1.0.8 lib/metanorma/vsd.rb
metanorma-vsd-1.0.7 lib/metanorma/vsd.rb
metanorma-vsd-1.0.6 lib/metanorma/vsd.rb
metanorma-vsd-1.0.5 lib/metanorma/vsd.rb
metanorma-vsd-1.0.4 lib/metanorma/vsd.rb