Module: IsoDoc::IEEE::Init
- Included in:
- HtmlConvert, PresentationXMLConvert, WordConvert
- Defined in:
- lib/isodoc/ieee/init.rb
Instance Method Summary collapse
- #fileloc(loc) ⇒ Object
- #i18n_init(lang, script, i18nyaml = nil) ⇒ Object
- #metadata_init(lang, script, i18n) ⇒ Object
- #xref_init(lang, script, _klass, i18n, options) ⇒ Object
Instance Method Details
#fileloc(loc) ⇒ Object
23 24 25 |
# File 'lib/isodoc/ieee/init.rb', line 23 def fileloc(loc) File.join(File.dirname(__FILE__), loc) end |
#i18n_init(lang, script, i18nyaml = nil) ⇒ Object
19 20 21 |
# File 'lib/isodoc/ieee/init.rb', line 19 def i18n_init(lang, script, i18nyaml = nil) @i18n = I18n.new(lang, script, i18nyaml: i18nyaml || @i18nyaml) end |
#metadata_init(lang, script, i18n) ⇒ Object
9 10 11 |
# File 'lib/isodoc/ieee/init.rb', line 9 def (lang, script, i18n) @meta = Metadata.new(lang, script, i18n) end |
#xref_init(lang, script, _klass, i18n, options) ⇒ Object
13 14 15 16 17 |
# File 'lib/isodoc/ieee/init.rb', line 13 def xref_init(lang, script, _klass, i18n, ) html = HtmlConvert.new(language: lang, script: script) = .merge(hierarchical_assets: @hierarchical_assets) @xrefs = Xref.new(lang, script, html, i18n, ) end |