Sha256: 67422c70b3f8bf156b7eb90f8d62427593f3c1455df6ce0242f07e15692cb887

Contents?: true

Size: 552 Bytes

Versions: 8

Compression:

Stored size: 552 Bytes

Contents

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

module IsoDoc
  module CC
    module Init
      def metadata_init(lang, script, i18n)
        @meta = Metadata.new(lang, script, i18n)
      end

      def xref_init(lang, script, klass, i18n, options)
        @xrefs = Xref.new(lang, script, HtmlConvert.new(language: lang, script: script), i18n, options)
      end

      def i18n_init(lang, script, i18nyaml = nil)
        @i18n = I18n.new(lang, script, i18nyaml || @i18nyaml)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
metanorma-cc-1.5.6 lib/isodoc/cc/init.rb
metanorma-cc-1.5.5 lib/isodoc/cc/init.rb
metanorma-cc-1.5.4 lib/isodoc/cc/init.rb
metanorma-cc-1.5.3 lib/isodoc/cc/init.rb
metanorma-cc-1.5.2 lib/isodoc/cc/init.rb
metanorma-cc-1.5.1 lib/isodoc/cc/init.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/init.rb
metanorma-cc-1.5.0 lib/isodoc/cc/init.rb