Purpose
Complete catalog of all Ceradoc Model classes with their inheritance hierarchy and attributes.
Class Hierarchy
Ceradoc::Model::Base
|
+------------------+------------------+
| | |
Structural Content Inline
Elements Elements Elements
| | |
+---+---+ +---+---+ +---+---+
| | | | | |
Document Section Block List Paragraph Link Anchor
| |
| +--+--+
| | |
Header TitleStructural Elements
Document
Root document container.
Inherits: Ceradoc::Model::Base
Attributes: * header (Header) - Document header with title and metadata * document_attributes (DocumentAttributes) - Document-level attributes * sections (Array<Section>) - Top-level sections
Location: lib/ceradoc/model/document.rb
Section
Document section with title and content.
Inherits: Ceradoc::Model::Base
Attributes: * title (Title) - Section title * sections (Array<Section>) - Nested subsections * paragraphs (Array<Paragraph>) - Paragraphs in this section * blocks (Array<Block::Core>) - Blocks in this section
Location: lib/ceradoc/model/section.rb
Header
Document metadata.
Inherits: Ceradoc::Model::Base
Attributes: * title (String) - Document title * author (Array<Author>) - Document authors * revision (Revision) - Revision information
Location: lib/ceradoc/model/header.rb
Title
Section or block title.
Inherits: Ceradoc::Model::Base
Attributes: * level_int (Integer) - Heading level (1-6) * content (Array<String>) - Title text
Location: lib/ceradoc/model/title.rb
Content Elements
Block Classes
Block::Core
Base class for delimited blocks.
Inherits: Ceradoc::Model::Base
Attributes: * delimiter_char (String) - Delimiter character * delimiter_len (Integer) - Delimiter length * lines (Array<String>) - Block lines * attributes (AttributeList) - Block attributes
Subclasses: * Block::Listing - Code listing * Block::Literal - Literal text * Block::Example - Example block * Block::Quote - Quote block * Block::Pass - Pass-through content
Location: lib/ceradoc/model/block/core.rb
Block::Listing
Code listing block.
Inherits: Block::Core
Attributes: * Inherits all from Block::Core
Location: lib/ceradoc/model/block/listing.rb
List Classes
List::Core
Base list class.
Inherits: Ceradoc::Model::Base
Attributes: * items (Array<ListItem>) - List items
Subclasses: * List::Unordered - Bulleted list * List::Ordered - Numbered list * List::Definition - Definition list
Location: lib/ceradoc/model/list/core.rb
List::Definition
Definition list.
Inherits: List::Core
Location: lib/ceradoc/asciidoc/model/list/definition.rb
List::Item
List item for ordered and unordered lists.
Inherits: List::Nestable
Attributes: * content (Array<TextElement|Inline>) - Item content * nested (List::Core) - Nested list * marker (String) - List marker character * id (String) - Item identifier
Location: lib/ceradoc/asciidoc/model/list/item.rb
Table Classes
Table
Table structure.
Inherits: Ceradoc::Model::Base
Attributes: * rows (Array<TableRow>) - Table rows * attributes (AttributeList) - Table attributes
Location: lib/ceradoc/model/table.rb
Inline Classes
Inline::Base
Base class for inline elements.
Inherits: Ceradoc::Model::Base
Attributes: * content (String or Array) - Inline content
Subclasses: * Inline::Bold - Bold text * Inline::Italic - Italic text * Inline::Monospace - Monospace text * Inline::Link - Hyperlink * Inline::Anchor - Cross-reference target * Inline::CrossReference - Cross-reference * Inline::Stem - STEM formula (mathematical notation)
Location: lib/ceradoc/model/inline/base.rb
Inline::Bold
Bold text.
Inherits: Inline::Base
Attributes: * content (String) - Bold text
Location: lib/ceradoc/model/inline/bold.rb
Inline::Monospace
Monospace text.
Inherits: Inline::Base
Location: lib/ceradoc/model/inline/monospace.rb
Inline::Link
Hyperlink.
Inherits: Inline::Base
Attributes: * path (String) - Link URL * name (String) - Link text
Location: lib/ceradoc/model/inline/link.rb
Inline::Anchor
Cross-reference target.
Inherits: Inline::Base
Attributes: * id (String) - Anchor ID
Location: lib/ceradoc/model/inline/anchor.rb
Helper Classes
AttributeList
Block or inline attributes.
Inherits: Ceradoc::Model::Base
Methods: * add_positional(value) - Add positional attribute * add_named(name, value) - Add named attribute * get(name) - Get named attribute * to_h() - Convert to hash
Location: lib/ceradoc/model/attribute_list.rb
Complete Class List
Blocks
-
Block::Core
-
Block::Listing
-
Block::Literal
-
Block::Example
-
Block::Quote
-
Block::Pass
-
Block::Open
-
Block::Side
-
Block::SourceCode
Lists
-
List::Core
-
List::Unordered
-
List::Ordered
-
List::Definition
-
List::Item
-
List::DefinitionItem
-
Term
Inline
-
Inline::Base
-
Inline::Bold
-
Inline::Italic
-
Inline::Monospace
-
Inline::Link
-
Inline::Anchor
-
Inline::CrossReference
-
Inline::Highlight
-
Inline::Quotation
-
Inline::Small
-
Inline::Span
-
Inline::Strikethrough
-
Inline::Subscript
-
Inline::Superscript
-
Inline::Underline
-
Inline::AttributeReference
-
Inline::Footnote
-
Inline::HardLineBreak
-
Inline::Stem
Related Documentation
-
API Reference - Method signatures
-
Document Model - Model architecture
-
Document Modeling Tutorial - Working with models