Sha256: cc2bdc7e1846a570997fb495d5f832ad6e5880057ae5fa82a7ce8b672b3bc32b

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

module FFakerTW
  module Gender
    extend ModuleUtils
    extend self

    GENDERS = %w[male female non-binary agender androgyne bi-gender pan-gender].freeze
    BINARY_GENDERS = %w[male female].freeze

    def random
      fetch_sample(GENDERS)
    end

    def binary
      fetch_sample(BINARY_GENDERS)
    end

    alias maybe random
    alias sample random
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffakerTW-0.1.0 lib/ffakerTW/gender.rb