Method: IsoDoc::PresentationXMLConvert#example1

Defined in:
lib/isodoc/presentation_function/block.rb

#example1(elem) ⇒ Object



42
43
44
45
46
# File 'lib/isodoc/presentation_function/block.rb', line 42

def example1(elem)
  n = @xrefs.get[elem["id"]]
  lbl = labelled_autonum(@i18n.example, elem["id"], n&.dig(:label))
  prefix_name(elem, { caption: block_delim }, lbl, "name")
end