Class: Coradoc::Mirror::Node::Admonition

Inherits:
Node
  • Object
show all
Defined in:
lib/coradoc/mirror/node.rb

Overview

── Admonition (NOTE, TIP, WARNING, CAUTION, IMPORTANT) ──

The Ruby attribute name is admonition_type (kept distinct from Node's built-in type discriminator). The wire attribute name is type per the @metanorma/mirror JS contract. The rename happens via a map declaration — no hand-rolled to_h/from_h.

Defined Under Namespace

Classes: Attrs

Constant Summary collapse

PM_TYPE =
'admonition'