Sha256: 0f77d0f6d91df75ebadac13d85487598df2fc4b7549c8582df2dcc17dd66adea

Contents?: true

Size: 234 Bytes

Versions: 6

Compression:

Stored size: 234 Bytes

Contents

# encoding: utf-8

module FFaker
  module GenderCN
    extend ModuleUtils
    extend self

    GENDERS = %w[男 女].freeze

    def random
      fetch_sample(GENDERS)
    end

    alias maybe random
    alias sample random
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffaker-2.11.0 lib/ffaker/gender_cn.rb
ffaker-2.10.0 lib/ffaker/gender_cn.rb
ffaker-2.9.0 lib/ffaker/gender_cn.rb
ffaker-2.8.1 lib/ffaker/gender_cn.rb
ffaker-2.8.0 lib/ffaker/gender_cn.rb
ffaker-2.7.0 lib/ffaker/gender_cn.rb