Sha256: 08fcdabee2739e284136b00a3ae45d5eebb2d323ef9eb5807741eb5946e1d0a7

Contents?: true

Size: 780 Bytes

Versions: 45

Compression:

Stored size: 780 Bytes

Contents

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

module IsoDoc
  module UN
    module Init
      def metadata_init(lang, script, locale, labels)
        @meta = Metadata.new(lang, script, locale, labels)
        @meta.set(:toc, @toc)
      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

      def fileloc(loc)
        File.join(File.dirname(__FILE__), loc)
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
metanorma-un-0.12.19 lib/isodoc/un/init.rb
metanorma-un-0.12.18 lib/isodoc/un/init.rb
metanorma-un-0.12.17 lib/isodoc/un/init.rb
metanorma-un-0.12.16 lib/isodoc/un/init.rb
metanorma-un-0.12.15 lib/isodoc/un/init.rb
metanorma-un-0.12.14 lib/isodoc/un/init.rb
metanorma-un-0.12.13 lib/isodoc/un/init.rb
metanorma-un-0.12.11 lib/isodoc/un/init.rb
metanorma-un-0.12.10 lib/isodoc/un/init.rb
metanorma-un-0.12.9 lib/isodoc/un/init.rb
metanorma-un-0.12.8 lib/isodoc/un/init.rb
metanorma-un-0.12.7 lib/isodoc/un/init.rb
metanorma-un-0.12.6 lib/isodoc/un/init.rb
metanorma-un-0.12.5 lib/isodoc/un/init.rb
metanorma-un-0.12.4 lib/isodoc/un/init.rb
metanorma-un-0.12.3 lib/isodoc/un/init.rb
metanorma-un-0.12.1 lib/isodoc/un/init.rb
metanorma-un-0.12.0 lib/isodoc/un/init.rb
metanorma-un-0.11.8 lib/isodoc/un/init.rb
metanorma-un-0.11.6 lib/isodoc/un/init.rb