Class: Coradoc::Markdown::Literal

Inherits:
Base
  • Object
show all
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

Methods inherited from Base

visit, #visit

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