Sha256: 711613501a460747441f6197cf44e4662f57649425260481c136c8c9aef54aac

Contents?: true

Size: 234 Bytes

Versions: 4

Compression:

Stored size: 234 Bytes

Contents

# encoding: utf-8

module FFaker
  module GenderKR
    extend ModuleUtils
    extend self

    GENDERS = %w(남 녀).freeze

    def random
      fetch_sample(GENDERS)
    end

    alias maybe random
    alias sample random
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffaker-2.6.0 lib/ffaker/gender_kr.rb
ffaker-2.5.0 lib/ffaker/gender_kr.rb
ffaker-2.4.0 lib/ffaker/gender_kr.rb
ffaker-2.3.0 lib/ffaker/gender_kr.rb