Sha256: bb13bcedd4545671d8be5d46fa69827cf37b383d6afdcabbfad377d3020d2820

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

# encoding: utf-8

require 'ffakerer/name'

module Faker
  # Philippine names based on http://en.wikipedia.org/wiki/Philippine_name
  module NamePH
    include Faker::Name

    extend ModuleUtils
    extend self

    def last_name
      case rand(2)
      when 0
        AUTOCHTHONOUS_SURNAMES.rand
      else
        SPANISH_SURNAMES.rand
      end
    end

    def name
      case rand(9)
      when 0 then "#{prefix} #{first_name} #{last_name}"
      else        "#{first_name} #{last_name}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffakerer-1.0.2 lib/ffakerer/name_ph.rb
ffakerer-1.0.1 lib/ffakerer/name_ph.rb