Method: Faker::QuoteTime#paragraph
- Defined in:
- lib/ffaker/quote_time.rb
#paragraph(sentence_count = 3) ⇒ Object
15 16 17 18 |
# File 'lib/ffaker/quote_time.rb', line 15 def paragraph(sentence_count = 3) sentences_with_duplicates = (1..sentence_count+10).map { sentence } sentences_with_duplicates.uniq[1..sentence_count+rand(4)].join(' ') end |