Module: Connie::Names

Defined in:
lib/dictionaries/names.rb

Instance Method Summary collapse

Instance Method Details

#firstObject

Returns either a male or a female first name



5
6
7
# File 'lib/dictionaries/names.rb', line 5

def first
  Connie? ? male : female
end

#first_sometimes_with_titleObject



23
24
25
26
27
28
29
# File 'lib/dictionaries/names.rb', line 23

def first_sometimes_with_title
  if Connie?
    Connie? ? [male, male_title] : [female, female_title]
  else
    Connie? ? [male] : [female]
  end
end

#first_with_titleObject

Returns an array of same gender name and title



18
19
20
# File 'lib/dictionaries/names.rb', line 18

def first_with_title
  Connie? ? [male, male_title] : [female, female_title]
end

#genderObject



9
10
11
# File 'lib/dictionaries/names.rb', line 9

def gender
  Connie? ? 'male' : 'female'
end

#titleObject



13
14
15
# File 'lib/dictionaries/names.rb', line 13

def title
  Connie? ? male_title : female_title
end