Sha256: 5be4726bad48ef08674f4405e593aa79abff2064a68317645a07f73f5a480159
Contents?: true
Size: 555 Bytes
Versions: 6
Compression:
Stored size: 555 Bytes
Contents
# frozen_string_literal: true require 'ffaker/name' module FFaker # Philippine names based on http://en.wikipedia.org/wiki/Philippine_name module NamePH include FFaker::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
6 entries across 6 versions & 1 rubygems