Logo GenPRES

Gender Module

Holds the male, female and unknown gender and writes a gender as lowercase text, with an empty text for an unknown gender.

Nested modules

Modules Description

Validation

Holds the validator that reads a gender from the lowercase text of a gender, with a validation error for any other text.

Functions and values

Function or value Description

female

Full Usage: female

Returns: Gender
Returns: Gender

male

Full Usage: male

Returns: Gender
Returns: Gender

toString gend

Full Usage: toString gend

Parameters:
Returns: string
gend : Gender
Returns: string

unknown

Full Usage: unknown

Returns: Gender
Returns: Gender

Type something to start searching.