Class: Coradoc::AsciiDoc::Model::CommentLine
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Base
- Coradoc::AsciiDoc::Model::CommentLine
- Defined in:
- lib/coradoc/asciidoc/model/comment_line.rb
Overview
Single-line comment element for AsciiDoc documents.
Comment lines start with double slash (//) and are not included in the final document output.
Instance Attribute Summary collapse
-
#line_break ⇒ String
readonly
Line break character (default: “n”).
-
#text ⇒ String
readonly
The comment text.
Attributes inherited from Base
Method Summary
Methods inherited from Base
#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit
Instance Attribute Details
#line_break ⇒ String (readonly)
Returns Line break character (default: “n”).
24 25 26 27 |
# File 'lib/coradoc/asciidoc/model/comment_line.rb', line 24 class CommentLine < Base attribute :text, :string attribute :line_break, :string, default: -> { "\n" } end |
#text ⇒ String (readonly)
Returns The comment text.
24 25 26 27 |
# File 'lib/coradoc/asciidoc/model/comment_line.rb', line 24 class CommentLine < Base attribute :text, :string attribute :line_break, :string, default: -> { "\n" } end |