Module: FFaker::BaconIpsum

Extended by:
BaconIpsum, ModuleUtils
Includes:
Lorem
Included in:
BaconIpsum
Defined in:
lib/ffaker/bacon_ipsum.rb

Overview

Thanks to baconipsum.com/

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, luhn_check, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Methods included from Lorem

#characters, #paragraph, #paragraphs, #sentence, #sentences

Instance Method Details

#wordObject



11
12
13
# File 'lib/ffaker/bacon_ipsum.rb', line 11

def word
  fetch_sample(BACON_WORDS)
end

#words(num = 3) ⇒ Object



15
16
17
# File 'lib/ffaker/bacon_ipsum.rb', line 15

def words(num = 3)
  fetch_sample(BACON_WORDS, count: num)
end