module FFaker::LoremJA

Public Instance Methods

character() click to toggle source
# File lib/ffaker/lorem_ja.rb, line 8
def character
  fetch_sample(CHARACTERS)
end
characters(count = 20) click to toggle source
# File lib/ffaker/lorem_ja.rb, line 12
def characters(count = 20)
  fetch_sample(CHARACTERS, count: count).join
end
paragraph(sentence_count = 3) click to toggle source
# File lib/ffaker/lorem_ja.rb, line 32
def paragraph(sentence_count = 3)
  "#{sentences(sentence_count).join('、')}、#{fetch_sample(SENTENCES_END)}。"
end
paragraphs(count = 3) click to toggle source
# File lib/ffaker/lorem_ja.rb, line 36
def paragraphs(count = 3)
  (1..count).map { paragraph }
end
sentence() click to toggle source
# File lib/ffaker/lorem_ja.rb, line 24
def sentence
  fetch_sample(SENTENCES)
end
sentences(count = 3) click to toggle source
# File lib/ffaker/lorem_ja.rb, line 28
def sentences(count = 3)
  (1..count).map { fetch_sample(SENTENCES) }
end
word() click to toggle source
# File lib/ffaker/lorem_ja.rb, line 16
def word
  fetch_sample(WORDS)
end
words(count = 3) click to toggle source
# File lib/ffaker/lorem_ja.rb, line 20
def words(count = 3)
  fetch_sample(WORDS, count: count)
end