lib/ffaker/lorem_kr.rb in ffaker-2.6.0 vs lib/ffaker/lorem_kr.rb in ffaker-2.7.0

- old
+ new

@@ -12,11 +12,11 @@ def words(num = 3) fetch_sample(WORDS, count: num) end def sentence(word_count = 4) - "#{words(word_count + rand(5) + 1).join(' ')}." + "#{words(word_count + rand(1..5)).join(' ')}." end alias phrase sentence def sentences(sentence_count = 3) @@ -24,10 +24,10 @@ end alias phrases sentences def paragraph(sentence_count = 3) - sentences(sentence_count + rand(3)).join(' ') + sentences(sentence_count + rand(0..2)).join(' ') end def paragraphs(paragraph_count = 3) (1..paragraph_count).map { paragraph } end