Sha256: b4cf1207fb6cf9d3a2dec9a03a657367c9a5e1b213f1d41235f13ccfb6d27f67

Contents?: true

Size: 401 Bytes

Versions: 8

Compression:

Stored size: 401 Bytes

Contents

# encoding: utf-8

module Faker
  module NameVN
    extend ModuleUtils
    extend self

    def name
      "#{middle_name} #{first_name} #{last_name}"
    end

    def first_name
      FIRST_NAMES.rand
    end

    def last_name
      LAST_NAMES.rand
    end

    def middle_name
      MIDDLE_NAMES.rand
    end

    def last_first
       "#{last_name} #{middle_name} #{first_name}"
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ffaker-1.30.0 lib/ffaker/name_vn.rb
ffaker-1.25.0 lib/ffaker/name_vn.rb
ffaker-1.24.0 lib/ffaker/name_vn.rb
ffakerer-1.0.2 lib/ffakerer/name_vn.rb
ffaker-1.23.0 lib/ffaker/name_vn.rb
ffakerer-1.0.1 lib/ffakerer/name_vn.rb
ffaker-1.22.1 lib/ffaker/name_vn.rb
ffaker-1.22.0 lib/ffaker/name_vn.rb