Sha256: cdec9793aae0eba74b2964af998bff89aa5f2fa0bafadd59e5cf381d37fc261b

Contents?: true

Size: 644 Bytes

Versions: 10

Compression:

Stored size: 644 Bytes

Contents

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

module IsoDoc
  module Ribose
    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 ||
          Metanorma::Ribose.configuration.i18nyaml || @i18nyaml
        )
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
metanorma-ribose-2.1.8.1 lib/isodoc/ribose/init.rb
metanorma-ribose-2.1.8 lib/isodoc/ribose/init.rb
metanorma-ribose-2.1.7 lib/isodoc/ribose/init.rb
metanorma-ribose-2.1.6 lib/isodoc/ribose/init.rb
metanorma-ribose-2.1.5 lib/isodoc/ribose/init.rb
metanorma-ribose-2.1.4 lib/isodoc/ribose/init.rb
metanorma-ribose-2.1.3 lib/isodoc/ribose/init.rb
metanorma-ribose-2.1.2 lib/isodoc/ribose/init.rb
metanorma-ribose-2.1.1 lib/isodoc/ribose/init.rb
metanorma-ribose-2.1.0 lib/isodoc/ribose/init.rb