Sha256: 3f0c1ac5304358bcd76304e5d0beed77f52adbe68a5af42a2fc68ed69b97b978

Contents?: true

Size: 691 Bytes

Versions: 28

Compression:

Stored size: 691 Bytes

Contents

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

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

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

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
metanorma-un-0.6.9 lib/isodoc/un/init.rb
metanorma-un-0.6.8 lib/isodoc/un/init.rb
metanorma-un-0.6.7 lib/isodoc/un/init.rb
metanorma-un-0.6.6 lib/isodoc/un/init.rb
metanorma-un-0.6.5 lib/isodoc/un/init.rb
metanorma-un-0.6.4 lib/isodoc/un/init.rb
metanorma-un-0.6.3 lib/isodoc/un/init.rb
metanorma-un-0.6.2 lib/isodoc/un/init.rb
metanorma-un-0.6.1 lib/isodoc/un/init.rb
metanorma-un-0.6.0 lib/isodoc/un/init.rb
metanorma-un-0.5.16 lib/isodoc/un/init.rb
metanorma-un-0.5.15 lib/isodoc/un/init.rb
metanorma-un-0.5.14 lib/isodoc/un/init.rb
metanorma-un-0.5.13 lib/isodoc/un/init.rb
metanorma-un-0.5.12 lib/isodoc/un/init.rb
metanorma-un-0.5.11 lib/isodoc/un/init.rb
metanorma-un-0.5.10 lib/isodoc/un/init.rb
metanorma-un-0.5.9 lib/isodoc/un/init.rb
metanorma-un-0.5.8 lib/isodoc/un/init.rb
metanorma-un-0.5.7 lib/isodoc/un/init.rb