Module: FFaker::JobFR
Constant Summary collapse
- JOB_ADJECTIVES =
%w[general adjoint associƩ].freeze
Instance Method Summary collapse
Methods included from ModuleUtils
const_missing, k, luhn_check, underscore, unique
Methods included from RandomUtils
#fetch_sample, #rand, #shuffle
Instance Method Details
#title ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/ffaker/job_fr.rb', line 10 def title if rand(0..1).zero? "#{fetch_sample(JOB_PREFIXES)} #{fetch_sample(JOB_ADJECTIVES)} #{fetch_sample(JOB_NOUNS)}" else "#{fetch_sample(JOB_PREFIXES)} #{fetch_sample(JOB_NOUNS)}" end end |