class GenderMachine::Name
Constants
- FREQUENCY_TRANSFORM
- GENDER_TRANSFORM
Public Instance Methods
country()
click to toggle source
# File lib/gender_machine/name.rb, line 69 def country COUNTRY_MAP_NUMERIC[frequency_index] end
frequency()
click to toggle source
# File lib/gender_machine/name.rb, line 61 def frequency # TODO: implement end
frequency_index()
click to toggle source
# File lib/gender_machine/name.rb, line 65 def frequency_index FREQUENCY_TRANSFORM.call(frequency_string) end
simplistic_gender()
click to toggle source
# File lib/gender_machine/name.rb, line 73 def simplistic_gender case gender.to_s when /female/i then :female when /male/i then :male else :non_gendered end end