module FFaker::NameFR

The names & first names in this module were found at this url github.com/fzaninotto/Faker/blob/master/src/Faker/Provider/fr_FR/Person.php

Constants

PREFIX

Public Instance Methods

first_name() click to toggle source
# File lib/ffaker/name_fr.rb, line 22
def first_name
  fetch_sample(FIRST_NAMES)
end
last_name() click to toggle source
# File lib/ffaker/name_fr.rb, line 18
def last_name
  fetch_sample(LAST_NAMES)
end
name() click to toggle source
# File lib/ffaker/name_fr.rb, line 26
def name
  case rand(0..9)
  when 5, 7
    "#{first_name} #{prefix} #{last_name}"
  else
    "#{first_name} #{last_name}"
  end
end
prefix() click to toggle source

randomized? (FRENCH) prefix!

# File lib/ffaker/name_fr.rb, line 14
def prefix
  fetch_sample(PREFIX)
end