Module: FFaker::FreedomIpsum

Extended by:
FreedomIpsum, ModuleUtils
Includes:
Lorem
Included in:
FreedomIpsum
Defined in:
lib/ffaker/freedom_ipsum.rb

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



12
13
14
# File 'lib/ffaker/freedom_ipsum.rb', line 12

def word
  fetch_sample(FREEDOM_WORDS)
end

#words(num = 3) ⇒ Object



16
17
18
# File 'lib/ffaker/freedom_ipsum.rb', line 16

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