Sha256: a17178c2fb6524f6567c4f8fa65bf050dd724502851c9edba26bce12d33c9764

Contents?: true

Size: 582 Bytes

Versions: 27

Compression:

Stored size: 582 Bytes

Contents

require "isodoc"
require_relative "metadata"
require_relative "xref"
require_relative "i18n"

module IsoDoc
  module BIPM
    module Init
      def metadata_init(lang, script, labels)
        @meta = Metadata.new(lang, script, labels)
      end

      def xref_init(lang, script, _klass, labels, options)
        html = HtmlConvert.new(language: lang, script: script)
        @xrefs = Xref.new(lang, script, html, labels, options)
      end

      def i18n_init(lang, script, i18nyaml = nil)
        @i18n = I18n.new(lang, script, i18nyaml || @i18nyaml)
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
metanorma-bipm-1.1.7 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.6 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.5.1 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.5 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.4 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.3 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.2 lib/isodoc/bipm/init.rb