Class: Metanorma::Core::Isodoc::EmptyNode

Inherits:
Object
  • Object
show all
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

Instance Method Details

#attr(_) ⇒ nil

Parameters:

  • _ (String)

    attribute name (ignored).

Returns:

  • (nil)


29
30
31
# File 'lib/metanorma/core/isodoc.rb', line 29

def attr(_)
  nil
end

#attributesHash

Returns empty attribute set.

Returns:

  • (Hash)

    empty attribute set.



34
35
36
# File 'lib/metanorma/core/isodoc.rb', line 34

def attributes
  {}
end