Module: IsoDoc::IHO::Init
- Included in:
- HtmlConvert, PresentationXMLConvert, WordConvert
- Defined in:
- lib/isodoc/iho/init.rb
Instance Method Summary collapse
- #i18n_init(lang, script, i18nyaml = nil) ⇒ Object
- #metadata_init(lang, script, labels) ⇒ Object
- #xref_init(lang, script, _klass, labels, options) ⇒ Object
Instance Method Details
#i18n_init(lang, script, i18nyaml = nil) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/isodoc/iho/init.rb', line 17 def i18n_init(lang, script, i18nyaml = nil) @i18n = I18n.new( lang, script, i18nyaml || Metanorma::IHO.configuration.i18nyaml || @i18nyaml ) end |
#metadata_init(lang, script, labels) ⇒ Object
8 9 10 |
# File 'lib/isodoc/iho/init.rb', line 8 def (lang, script, labels) @meta = Metadata.new(lang, script, labels) end |
#xref_init(lang, script, _klass, labels, options) ⇒ Object
12 13 14 15 |
# File 'lib/isodoc/iho/init.rb', line 12 def xref_init(lang, script, _klass, labels, ) html = HtmlConvert.new(language: lang, script: script) @xrefs = Xref.new(lang, script, html, labels, ) end |