Class: Coradoc::AsciiDoc::Model::Inline::Quotation

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/asciidoc/model/inline/quotation.rb

Overview

Quotation (single-quoted text) inline element for AsciiDoc documents.

Quoted text is rendered with single backticks: ‘quoted text`.

Examples:

Create quoted text

quote = Coradoc::AsciiDoc::Model::Inline::Quotation.new
quote.content = "He said"
quote.to_adoc # => "`He said`"

Instance Attribute Summary collapse

Attributes inherited from Base

#id

Method Summary

Methods inherited from Base

#inline?

Methods inherited from Base

#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit

Instance Attribute Details

#contentString (readonly)

Returns The text content to quote.

Returns:

  • (String)

    The text content to quote



19
20
21
# File 'lib/coradoc/asciidoc/model/inline/quotation.rb', line 19

class Quotation < Base
  attribute :content, :string
end