Sha256: 544687e10be10b85d16bedb47d19d63dd87dadac3595bdd9f1efcb9fa5bed54c

Contents?: true

Size: 620 Bytes

Versions: 18

Compression:

Stored size: 620 Bytes

Contents

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
metanorma-iho-0.3.3 lib/isodoc/iho/init.rb
metanorma-iho-0.3.2 lib/isodoc/iho/init.rb
metanorma-iho-0.3.1 lib/isodoc/iho/init.rb
metanorma-iho-0.3.0 lib/isodoc/iho/init.rb
metanorma-iho-0.2.16 lib/isodoc/iho/init.rb
metanorma-iho-0.2.15 lib/isodoc/iho/init.rb
metanorma-iho-0.2.14 lib/isodoc/iho/init.rb
metanorma-iho-0.2.13 lib/isodoc/iho/init.rb
metanorma-iho-0.2.12 lib/isodoc/iho/init.rb
metanorma-iho-0.2.11 lib/isodoc/iho/init.rb
metanorma-iho-0.2.10 lib/isodoc/iho/init.rb
metanorma-iho-0.2.9 lib/isodoc/iho/init.rb
metanorma-iho-0.2.8 lib/isodoc/iho/init.rb
metanorma-iho-0.2.7 lib/isodoc/iho/init.rb
metanorma-iho-0.2.6 lib/isodoc/iho/init.rb
metanorma-iho-0.2.5 lib/isodoc/iho/init.rb
metanorma-iho-0.2.4 lib/isodoc/iho/init.rb
metanorma-iho-0.2.3 lib/isodoc/iho/init.rb