class Faker::Markdown

def sandwich(sentences: 3, repeat: 1)

Returns:
  • (String) -

Parameters:
  • repeat (Integer) -- Specifies how many times the text block repeats.
  • sentences (Integer) -- Specifies how many sentences make a text block.
def sandwich(sentences: 3, repeat: 1)
  text_block = []
  text_block << headers
  repeat.times do
    text_block << Faker::Lorem.paragraph(sentence_count: sentences)
    text_block << random
  end
  text_block.join("\n")
end