IsGender
Determines whether a given input represents a valid gender.
This class extends the Function class and provides a method to check if a given input represents a valid gender. The implementation follows the specified validation rules.
The IsGender class is meant to be instantiated and used to validate gender inputs. It inherits common functionality from the Function base class.