Sha256: 5dd782aba673f73eaff7cf650349567b6787525523b9e9144a0931834ed56a07
Contents?: true
Size: 993 Bytes
Versions: 1
Compression:
Stored size: 993 Bytes
Contents
# frozen_string_literal: true module FFakerTW module NameRU extend ModuleUtils extend self FIRST_NAMES = FIRST_NAMES_MALE + FIRST_NAMES_FEMALE LAST_NAMES = LAST_NAMES_MALE + LAST_NAMES_FEMALE def name rand(0..1).zero? ? female_name : male_name end def first_name fetch_sample(FIRST_NAMES) end def last_name fetch_sample(LAST_NAMES) end def female_name "#{first_name_female} #{last_name_female}" end def male_name "#{first_name_male} #{last_name_male}" end def first_name_female fetch_sample(FIRST_NAMES_FEMALE) end def first_name_male fetch_sample(FIRST_NAMES_MALE) end def middle_name_female fetch_sample(MIDDLE_NAMES_FEMALE) end def middle_name_male fetch_sample(MIDDLE_NAMES_MALE) end def last_name_female fetch_sample(LAST_NAMES_FEMALE) end def last_name_male fetch_sample(LAST_NAMES_MALE) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | lib/ffakerTW/name_ru.rb |