Class: Coradoc::CoreModel::CommentLine

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/core_model/comment_line.rb

Overview

Single-line comment — editorial or hidden notes that do not render.

Distinct from CommentBlock (multi-line). Round-trip fidelity for the single-line vs. block distinction is preserved across formats that have a single-line comment syntax (AsciiDoc ‘//`); formats without one (e.g. Markdown) collapse both to `<!– … –>`.

Instance Attribute Summary

Attributes inherited from Base

#element_attributes, #id, #metadata_entries, #title

Class Method Summary collapse

Methods inherited from Base

#accept, #attr, #flat_text, #metadata, #semantically_equivalent?, #set_attr, #set_metadata

Class Method Details

.semantic_typeObject



12
13
14
# File 'lib/coradoc/core_model/comment_line.rb', line 12

def self.semantic_type
  :comment_line
end