module Faker::NameSN
Author PapePathe<pathe.sene@gmail.com> github.com/PapePathe The names & first names in this module were found at this url: www.senegalaisement.com/senegal/noms_et_prenoms.html
Constants
- PREFIX_FEMALE
- PREFIX_MALE
Public Instance Methods
first_name_female()
click to toggle source
# File lib/ffakerer/name_sn.rb, line 22 def first_name_female FIRST_NAMES_FEMALE.rand end
first_name_male()
click to toggle source
# File lib/ffakerer/name_sn.rb, line 18 def first_name_male FIRST_NAMES_MALE.rand end
last_name()
click to toggle source
# File lib/ffakerer/name_sn.rb, line 14 def last_name LAST_NAMES.rand end
name_female()
click to toggle source
# File lib/ffakerer/name_sn.rb, line 44 def name_female case rand(10) when 7 then "#{prefix_female} #{first_name_female} #{last_name}" when 5 then "#{prefix_female} #{first_name_female} #{last_name}" when 3 then "#{first_name_female} #{last_name}" when 0 then "#{first_name_female} #{last_name}" else "#{first_name_female} #{last_name}" end end
name_male()
click to toggle source
# File lib/ffakerer/name_sn.rb, line 34 def name_male case rand(10) when 7 then "#{prefix_male} #{first_name_male} #{last_name}" when 5 then "#{prefix_male} #{first_name_male} #{last_name}" when 3 then "#{first_name_male} #{last_name}" when 0 then "#{first_name_male} #{last_name}" else "#{first_name_male} #{last_name}" end end
name_sn()
click to toggle source
# File lib/ffakerer/name_sn.rb, line 54 def name_sn case rand(10) when 7 then "#{prefix_female} #{first_name_female} #{last_name}" when 5 then "#{prefix_male} #{first_name_male} #{last_name}" when 3 then "#{first_name_male} #{last_name}" when 3 then "#{first_name_female} #{last_name}" when 0 then "#{first_name_male} #{last_name}" else "#{first_name_female} #{last_name}" end end
prefix_female()
click to toggle source
# File lib/ffakerer/name_sn.rb, line 30 def prefix_female PREFIX_FEMALE.rand end
prefix_male()
click to toggle source
# File lib/ffakerer/name_sn.rb, line 26 def prefix_male PREFIX_MALE.rand end