Sha256: 5cdbb5a4e896f3da64f305887b1058b628b30f910f56d74ec19a63d1f7b793cf

Contents?: true

Size: 673 Bytes

Versions: 11

Compression:

Stored size: 673 Bytes

Contents

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

module IsoDoc
  module M3AAWG
    module Init
      def metadata_init(lang, script, locale, labels)
        @meta = Metadata.new(lang, script, locale, 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, locale, i18nyaml = nil)
        @i18n = I18n.new(lang, script, locale: locale,
                                       i18nyaml: i18nyaml || @i18nyaml)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
metanorma-m3aawg-2.2.5 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.2.4 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.2.3 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.2.2 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.2.1 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.2.0 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.1.13 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.1.12 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.1.11 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.1.10 lib/isodoc/m3aawg/init.rb
metanorma-m3aawg-2.1.9 lib/isodoc/m3aawg/init.rb