Sha256: dbfbd18c498fe5822c4cc3966be29b7bc6d7c362b509e2311e2bcd8ec9b1ed5c
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
# frozen_string_literal: true module FFakerTW # The names & first names in this module were found at this url # https://github.com/fzaninotto/Faker/blob/master/src/Faker/Provider/fr_FR/Person.php module NameFR extend ModuleUtils extend self PREFIX = %w[de du le].freeze # randomized? (FRENCH) prefix! # def prefix fetch_sample(PREFIX) end def last_name fetch_sample(LAST_NAMES) end def first_name fetch_sample(FIRST_NAMES) end def name case rand(0..9) when 7 then "#{first_name} #{prefix} #{last_name}" when 5 then "#{first_name} #{prefix} #{last_name}" else "#{first_name} #{last_name}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | lib/ffakerTW/name_fr.rb |