Module: Connie::Names
- Defined in:
- lib/dictionaries/names.rb
Instance Method Summary collapse
-
#first ⇒ Object
Returns either a male or a female first name.
- #first_sometimes_with_title ⇒ Object
-
#first_with_title ⇒ Object
Returns an array of same gender name and title.
- #gender ⇒ Object
- #title ⇒ Object
Instance Method Details
#first ⇒ Object
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_title ⇒ Object
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_title ⇒ Object
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 |
#gender ⇒ Object
9 10 11 |
# File 'lib/dictionaries/names.rb', line 9 def gender Connie? ? 'male' : 'female' end |
#title ⇒ Object
13 14 15 |
# File 'lib/dictionaries/names.rb', line 13 def title Connie? ? male_title : female_title end |