Class: ArticleJSON::Export::PlainText::Elements::Quote

Inherits:
Base
  • Object
show all
Defined in:
lib/article_json/export/plain_text/elements/quote.rb

Instance Method Summary collapse

Methods inherited from Base

namespace

Methods included from Common::Elements::Base

included, #initialize

Instance Method Details

#exportString

Quotes are just rendered with a preceding blank line. If a caption is present, it is rendered below the quote indented with two dashes.

Returns:

  • (String)


9
10
11
# File 'lib/article_json/export/plain_text/elements/quote.rb', line 9

def export
  "\n#{quote_text}\n"
end