Class: Coradoc::Markdown::Blockquote

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/markdown/model/blockquote.rb

Overview

Blockquote model representing a Markdown blockquote (> prefix).

Examples:

Create a blockquote

quote = Coradoc::Markdown::Blockquote.new(
  content: "This is a quoted text."
)

Instance Method Summary collapse

Methods inherited from Base

#serialize_content, #to_h, #to_md, visit, #visit

Constructor Details

#initialize(content: '') ⇒ Blockquote

Returns a new instance of Blockquote.



15
16
17
18
# File 'lib/coradoc/markdown/model/blockquote.rb', line 15

def initialize(content: '')
  super()
  @content = content
end