Class: Metanorma::CollectionRenderer::PdfOptionsNode
- Inherits:
-
Object
- Object
- Metanorma::CollectionRenderer::PdfOptionsNode
- Defined in:
- lib/metanorma/collection_renderer.rb
Instance Method Summary collapse
- #attr(key) ⇒ Object
-
#initialize(doctype, options) ⇒ PdfOptionsNode
constructor
A new instance of PdfOptionsNode.
Constructor Details
#initialize(doctype, options) ⇒ PdfOptionsNode
Returns a new instance of PdfOptionsNode.
114 115 116 117 118 119 |
# File 'lib/metanorma/collection_renderer.rb', line 114 def initialize(doctype, ) docproc = Metanorma::Registry.instance.find_processor(doctype) if FontistUtils.has_fonts_manifest?(docproc, ) @fonts_manifest = FontistUtils.location_manifest(docproc) end end |
Instance Method Details
#attr(key) ⇒ Object
121 122 123 124 125 |
# File 'lib/metanorma/collection_renderer.rb', line 121 def attr(key) if key == "fonts-manifest" && @font_locations @fonts_manifest end end |