Sha256: f98163965175c35ede49b51a2b7f64ca160284cd208f4e1f3c2b74177b2e4cb6

Contents?: true

Size: 246 Bytes

Versions: 12

Compression:

Stored size: 246 Bytes

Contents

# frozen_string_literal: true

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

12 entries across 12 versions & 1 rubygems

Version Path
ffaker-2.23.0 lib/ffaker/gender_cn.rb
ffaker-2.22.0 lib/ffaker/gender_cn.rb
ffaker-2.21.0 lib/ffaker/gender_cn.rb
ffaker-2.20.0 lib/ffaker/gender_cn.rb
ffaker-2.19.0 lib/ffaker/gender_cn.rb
ffaker-2.18.0 lib/ffaker/gender_cn.rb
ffaker-2.17.0 lib/ffaker/gender_cn.rb
ffaker-2.16.0 lib/ffaker/gender_cn.rb
ffaker-2.15.0 lib/ffaker/gender_cn.rb
ffaker-2.14.0 lib/ffaker/gender_cn.rb
ffaker-2.13.0 lib/ffaker/gender_cn.rb
ffaker-2.12.0 lib/ffaker/gender_cn.rb