Class: CSKit::Formatters::Bible::BiblePlainTextFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/cskit/formatters/bible/bible_plain_text_formatter.rb

Direct Known Subclasses

BibleHtmlFormatter

Instance Attribute Summary

Attributes inherited from Formatter

#options

Instance Method Summary collapse

Methods inherited from Formatter

#initialize

Constructor Details

This class inherits a constructor from CSKit::Formatters::Formatter

Instance Method Details

#format_annotated_readings(readings, annotation_formatter) ⇒ Object



14
15
16
17
18
# File 'lib/cskit/formatters/bible/bible_plain_text_formatter.rb', line 14

def format_annotated_readings(readings, annotation_formatter)
  join_readings(readings) do |reading|
    format_annotated_reading(reading, annotation_formatter)
  end
end

#format_readings(readings) ⇒ Object



8
9
10
11
12
# File 'lib/cskit/formatters/bible/bible_plain_text_formatter.rb', line 8

def format_readings(readings)
  join_readings(readings) do |reading|
    format_reading(reading)
  end
end

#join(texts) ⇒ Object



20
21
22
# File 'lib/cskit/formatters/bible/bible_plain_text_formatter.rb', line 20

def join(texts)
  texts.join(separator)
end