Sha256: 0efbfd4cb0f998557d70a3c18c125bcef1d9c721e560db7987bc76aed4bc6c2e

Contents?: true

Size: 362 Bytes

Versions: 6

Compression:

Stored size: 362 Bytes

Contents

# encoding: utf-8

module Faker
  module NameKR
    extend ModuleUtils
    extend self

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

    def name_with_space
      "#{last_name} #{first_name}"
    end

    def first_name
      FIRST_NAMES.sample
    end

    def last_name
      LAST_NAMES.sample
    end

    alias_method :last_first, :name
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/lib/ffaker/name_kr.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/lib/ffaker/name_kr.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/lib/ffaker/name_kr.rb
ffaker-1.32.1 lib/ffaker/name_kr.rb
ffaker-1.32.0 lib/ffaker/name_kr.rb
ffaker-1.31.0 lib/ffaker/name_kr.rb