Class Enum
A base object for all Enum objects.
Functions
self:IsValid (option) | Verifies the Enum. |
Methods
Enum:Enum (_subtype, _optionsTable) | Enum constructor. |
Properties
self.Subtype.get () | Returns the subtype of the Enum. |
Functions
- self:IsValid (option)
-
Verifies the Enum.
Searches for matching key or value within the options table to guarantee the passing of valid options where necessary.
Parameters:
- option string
Returns:
-
bool
Methods
- Enum:Enum (_subtype, _optionsTable)
-
Enum constructor.
Parameters:
- _subtype string A string identifying the Enum.
- _optionsTable table A table of valid options for the Enum.
Returns: