Class: Metanorma::CollectionRenderer::PdfOptionsNode
- Inherits:
-
Object
- Object
- Metanorma::CollectionRenderer::PdfOptionsNode
- Defined in:
- lib/metanorma/collection_render_utils.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.
57 58 59 60 61 62 |
# File 'lib/metanorma/collection_render_utils.rb', line 57 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
64 65 66 67 68 |
# File 'lib/metanorma/collection_render_utils.rb', line 64 def attr(key) if key == "fonts-manifest" && @fonts_manifest @fonts_manifest end end |