Class: Coradoc::AsciiDoc::Model::Admonition
Overview
Admonition block for AsciiDoc documents.
Admonitions are special callout boxes that highlight important information: NOTE, TIP, WARNING, CAUTION, IMPORTANT.
Instance Attribute Summary collapse
-
#content ⇒ String
readonly
The admonition text content.
-
#line_break ⇒ String
readonly
Line break character (default: “”).
-
#type ⇒ String
readonly
The admonition type (e.g., “NOTE”, “TIP”, “WARNING”).
Attributes inherited from Base
Method Summary
Methods inherited from Attached
Methods inherited from Base
#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit
Instance Attribute Details
#content ⇒ String (readonly)
Returns The admonition text content.
30 31 32 33 34 |
# File 'lib/coradoc/asciidoc/model/admonition.rb', line 30 class Admonition < Attached attribute :content, :string attribute :type, :string attribute :line_break, :string, default: -> { '' } end |
#line_break ⇒ String (readonly)
Returns Line break character (default: “”).
30 31 32 33 34 |
# File 'lib/coradoc/asciidoc/model/admonition.rb', line 30 class Admonition < Attached attribute :content, :string attribute :type, :string attribute :line_break, :string, default: -> { '' } end |
#type ⇒ String (readonly)
Returns The admonition type (e.g., “NOTE”, “TIP”, “WARNING”).
30 31 32 33 34 |
# File 'lib/coradoc/asciidoc/model/admonition.rb', line 30 class Admonition < Attached attribute :content, :string attribute :type, :string attribute :line_break, :string, default: -> { '' } end |