Class: ArticleJSON::Export::PlainText::Elements::List

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

Instance Method Summary collapse

Methods inherited from Base

namespace

Methods included from Common::Elements::Base

included, #initialize

Instance Method Details

#exportString

List of strings, one per line. If the list type is “ordered” then each line is preceded with a number, otherwise a dash. Newlines within a list item are indented accordingly.

Returns:

  • (String)


10
11
12
# File 'lib/article_json/export/plain_text/elements/list.rb', line 10

def export
  "#{list}\n"
end