Module: Faker::NamePH
- Extended by:
- ModuleUtils, NamePH
- Includes:
- Name
- Included in:
- NamePH
- Defined in:
- lib/ffakerer/name_ph.rb
Overview
Philippine names based on en.wikipedia.org/wiki/Philippine_name
Constant Summary
Constants included from Name
Faker::Name::PREFIXES, Faker::Name::SUFFIXES
Instance Method Summary collapse
Methods included from ModuleUtils
Methods included from Name
Instance Method Details
#last_name ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/ffakerer/name_ph.rb', line 13 def last_name case rand(2) when 0 AUTOCHTHONOUS_SURNAMES.rand else SPANISH_SURNAMES.rand end end |
#name ⇒ Object
22 23 24 25 26 27 |
# File 'lib/ffakerer/name_ph.rb', line 22 def name case rand(9) when 0 then "#{prefix} #{first_name} #{last_name}" else "#{first_name} #{last_name}" end end |