module FFaker::CheesyLingo
Constants
- TITLE_1
- TITLE_2
Public Instance Methods
paragraph(number_of_phrases = 10)
click to toggle source
# File lib/ffaker/cheesy_lingo.rb, line 33 def paragraph(number_of_phrases = 10) p = +fetch_sample(CHEESY_PHRASES).capitalize (number_of_phrases - 1).times { p << " #{fetch_sample(CHEESY_PHRASES)}" } p << '.' end
sentence()
click to toggle source
# File lib/ffaker/cheesy_lingo.rb, line 25 def sentence "#{[ fetch_sample(CHEESY_PHRASES).capitalize, fetch_sample(CHEESY_PHRASES), fetch_sample(CHEESY_PHRASES) ].join}." end
title()
click to toggle source
# File lib/ffaker/cheesy_lingo.rb, line 13 def title "#{fetch_sample(TITLE_1)} #{fetch_sample(TITLE_2)}" end
word()
click to toggle source
# File lib/ffaker/cheesy_lingo.rb, line 17 def word fetch_sample(CHEESY_WORDS) end
words(count = 5)
click to toggle source
# File lib/ffaker/cheesy_lingo.rb, line 21 def words(count = 5) fetch_sample(CHEESY_WORDS, count: count) end