Class: Coradoc::Markdown::Literal
- Defined in:
- lib/coradoc/markdown/model/literal.rb
Overview
Literal block — preformatted text with no syntax highlighting and no inline formatting. Distinct from a code block (which carries a language for highlighting).
Markdown: indented code block (4 leading spaces per line).
Instance Method Summary collapse
-
#initialize(content:, **rest) ⇒ Literal
constructor
A new instance of Literal.
Methods inherited from Base
Constructor Details
#initialize(content:, **rest) ⇒ Literal
Returns a new instance of Literal.
15 16 17 18 |
# File 'lib/coradoc/markdown/model/literal.rb', line 15 def initialize(content:, **rest) super @content = content end |