Module: FFaker::Gender

Extended by:
Gender, ModuleUtils
Included in:
Gender
Defined in:
lib/ffaker/gender.rb

Constant Summary collapse

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

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, luhn_check, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#binaryObject



15
16
17
# File 'lib/ffaker/gender.rb', line 15

def binary
  fetch_sample(BINARY_GENDERS)
end

#randomObject Also known as: maybe, sample



11
12
13
# File 'lib/ffaker/gender.rb', line 11

def random
  fetch_sample(GENDERS)
end