Class: FakeFaker::Lorem
- Inherits:
-
Object
- Object
- FakeFaker::Lorem
- Defined in:
- lib/fake_faker/lorem.rb
Class Method Summary collapse
- .characters(char_count = nil) ⇒ Object
- .paragraph(sentence_count = nil, supplemental = nil, random_sentences_to_add = nil) ⇒ Object
- .paragraph_by_chars(chars = nil, supplemental = nil) ⇒ Object
- .paragraphs(paragraph_count = nil, supplemental = nil) ⇒ Object
- .question(word_count = nil, supplemental = nil, random_words_to_add = nil) ⇒ Object
- .questions(question_count = nil, supplemental = nil) ⇒ Object
- .sentence(word_count = nil, supplemental = nil, random_words_to_add = nil) ⇒ Object
- .sentences(sentence_count = nil, supplemental = nil) ⇒ Object
- .words(num = nil, supplemental = nil) ⇒ Object
Class Method Details
.characters(char_count = nil) ⇒ Object
4 5 6 |
# File 'lib/fake_faker/lorem.rb', line 4 def characters(char_count = nil) ::Faker::Lorem.characters(number: number) end |
.paragraph(sentence_count = nil, supplemental = nil, random_sentences_to_add = nil) ⇒ Object
8 9 10 |
# File 'lib/fake_faker/lorem.rb', line 8 def paragraph(sentence_count = nil, supplemental = nil, random_sentences_to_add = nil) ::Faker::Lorem.paragraph(sentence_count: sentence_count, supplemental: supplemental, random_sentences_to_add: random_sentences_to_add) end |
.paragraph_by_chars(chars = nil, supplemental = nil) ⇒ Object
12 13 14 |
# File 'lib/fake_faker/lorem.rb', line 12 def paragraph_by_chars(chars = nil, supplemental = nil) ::Faker::Lorem.paragraph_by_chars(number: number, supplemental: supplemental) end |
.paragraphs(paragraph_count = nil, supplemental = nil) ⇒ Object
16 17 18 |
# File 'lib/fake_faker/lorem.rb', line 16 def paragraphs(paragraph_count = nil, supplemental = nil) ::Faker::Lorem.paragraphs(number: number, supplemental: supplemental) end |
.question(word_count = nil, supplemental = nil, random_words_to_add = nil) ⇒ Object
20 21 22 |
# File 'lib/fake_faker/lorem.rb', line 20 def question(word_count = nil, supplemental = nil, random_words_to_add = nil) ::Faker::Lorem.question(word_count: word_count, supplemental: supplemental, random_words_to_add: random_words_to_add) end |
.questions(question_count = nil, supplemental = nil) ⇒ Object
24 25 26 |
# File 'lib/fake_faker/lorem.rb', line 24 def questions(question_count = nil, supplemental = nil) ::Faker::Lorem.questions(number: number, supplemental: supplemental) end |
.sentence(word_count = nil, supplemental = nil, random_words_to_add = nil) ⇒ Object
28 29 30 |
# File 'lib/fake_faker/lorem.rb', line 28 def sentence(word_count = nil, supplemental = nil, random_words_to_add = nil) ::Faker::Lorem.sentence(word_count: word_count, supplemental: supplemental, random_words_to_add: random_words_to_add) end |
.sentences(sentence_count = nil, supplemental = nil) ⇒ Object
32 33 34 |
# File 'lib/fake_faker/lorem.rb', line 32 def sentences(sentence_count = nil, supplemental = nil) ::Faker::Lorem.sentences(number: number, supplemental: supplemental) end |
.words(num = nil, supplemental = nil) ⇒ Object
36 37 38 |
# File 'lib/fake_faker/lorem.rb', line 36 def words(num = nil, supplemental = nil) ::Faker::Lorem.words(number: number, supplemental: supplemental) end |