Sha256: c1c6eaf91c08896d3cfc4d52fa1f7bfcc7e5644d67913c859b5894fa317a73a9
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
# frozen_string_literal: true module FFakerTW # Philippine names based on http://en.wikipedia.org/wiki/Philippine_name module NamePH include FFakerTW::Name extend ModuleUtils extend self def last_name case rand(0..1) when 0 then fetch_sample(AUTOCHTHONOUS_SURNAMES) else fetch_sample(SPANISH_SURNAMES) end end def name case rand(0..8) when 0 then "#{prefix} #{first_name} #{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_ph.rb |