Class: Metanorma::Core::Isodoc::EmptyNode
- Inherits:
-
Object
- Object
- Metanorma::Core::Isodoc::EmptyNode
- Defined in:
- lib/metanorma/core/isodoc.rb
Overview
Stand-in for the Asciidoctor node argument that converters expect when their presentation_xml_converter / html_converter factory methods are invoked outside an actual Asciidoctor conversion. The attr and attributes stubs return empty values so the factory can run without a real document context.
Instance Method Summary collapse
- #attr(_) ⇒ nil
-
#attributes ⇒ Hash
Empty attribute set.
Instance Method Details
#attr(_) ⇒ nil
29 30 31 |
# File 'lib/metanorma/core/isodoc.rb', line 29 def attr(_) nil end |
#attributes ⇒ Hash
Returns empty attribute set.
34 35 36 |
# File 'lib/metanorma/core/isodoc.rb', line 34 def attributes {} end |