Module: FFaker::GenderCN

Extended by:
GenderCN, ModuleUtils
Included in:
GenderCN
Defined in:
lib/ffaker/gender_cn.rb

Constant Summary collapse

GENDERS =
%w(男 女)

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#randomObject Also known as: maybe, sample


10
11
12
# File 'lib/ffaker/gender_cn.rb', line 10

def random
  GENDERS.sample
end