Method: Faker::Gender.type

Defined in:
lib/faker/default/gender.rb

.typeString

Produces the name of a gender identity.

Examples:

Faker::Gender.type #=> "Non-binary"

Returns:

  • (String)

Available since:

  • 1.9.0



15
16
17
# File 'lib/faker/default/gender.rb', line 15

def type
  fetch('gender.types')
end