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-2.0.8 lib/isodoc/bipm/init.rb
metanorma-bipm-2.0.7 lib/isodoc/bipm/init.rb
metanorma-bipm-2.0.6 lib/isodoc/bipm/init.rb
metanorma-bipm-2.0.5 lib/isodoc/bipm/init.rb
metanorma-bipm-2.0.4 lib/isodoc/bipm/init.rb
metanorma-bipm-2.0.3 lib/isodoc/bipm/init.rb
metanorma-bipm-2.0.2 lib/isodoc/bipm/init.rb
metanorma-bipm-2.0.1 lib/isodoc/bipm/init.rb
metanorma-bipm-2.0.0.1 lib/isodoc/bipm/init.rb
metanorma-bipm-2.0.0 lib/isodoc/bipm/init.rb
metanorma-bipm-1.2.5 lib/isodoc/bipm/init.rb
metanorma-bipm-1.2.4 lib/isodoc/bipm/init.rb
metanorma-bipm-1.2.3 lib/isodoc/bipm/init.rb
metanorma-bipm-1.2.2 lib/isodoc/bipm/init.rb
metanorma-bipm-1.2.1 lib/isodoc/bipm/init.rb
metanorma-bipm-1.2.0 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.11 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.10 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.9 lib/isodoc/bipm/init.rb
metanorma-bipm-1.1.8 lib/isodoc/bipm/init.rb