module Faker::NameFR

Author PapePathe<pathe.sene@gmail.com> github.com/PapePathe 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/ffakerer/name_fr.rb, line 23
def first_name
  FIRST_NAMES.rand
end
last_name() click to toggle source
# File lib/ffakerer/name_fr.rb, line 19
def last_name
  LAST_NAMES.rand
end
name() click to toggle source
# File lib/ffakerer/name_fr.rb, line 27
def name
  case rand(10)
  when 7 then "#{first_name} #{prefix} #{last_name}"
  when 5 then "#{first_name} #{prefix} #{last_name}"
  when 3 then "#{first_name} #{last_name}"
  when 0 then "#{first_name} #{last_name}"
  else        "#{first_name} #{last_name}"
  end
end
prefix() click to toggle source

randomized? (FRENCH) prefix!

# File lib/ffakerer/name_fr.rb, line 15
def prefix
  PREFIX.rand
end