Sha256: 207fb8a19ae9a5c3ffd005ca64b40f280f36d22a6b95b01d36eb71b87d846057

Contents?: true

Size: 254 Bytes

Versions: 5

Compression:

Stored size: 254 Bytes

Contents

# frozen_string_literal: true

module FFaker
  module GenderIT
    extend ModuleUtils
    extend self

    GENDERS = %w[maschio femmina].freeze

    def random
      fetch_sample(GENDERS)
    end

    alias maybe random
    alias sample random
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 lib/ffaker/gender_it.rb
ffaker-2.22.0 lib/ffaker/gender_it.rb
ffaker-2.21.0 lib/ffaker/gender_it.rb
ffaker-2.20.0 lib/ffaker/gender_it.rb
ffaker-2.19.0 lib/ffaker/gender_it.rb