module FFaker::NameGR
def female_first_name
def female_first_name fetch_sample(FEMALE_FIRST_NAMES) end
def female_full_name
def female_full_name "#{female_first_name} #{female_last_name}" end
def female_last_name
def female_last_name fetch_sample(FEMALE_LAST_NAMES) end
def first_name
def first_name case rand(0..1) when 0 then male_first_name when 1 then female_first_name end end
def full_name(gender = :any)
def full_name(gender = :any) case gender when :any then rand(0..1).zero? ? male_full_name : female_full_name when :male then male_full_name when :female then female_full_name else raise ArgumentError, 'Invalid gender, must be one of :any, :male, :female' end end
def last_name
def last_name case rand(0..1) when 0 then male_last_name when 1 then female_last_name end end
def male_first_name
def male_first_name fetch_sample(MALE_FIRST_NAMES) end
def male_full_name
def male_full_name "#{male_first_name} #{male_last_name}" end
def male_last_name
def male_last_name fetch_sample(MALE_LAST_NAMES) end