Enum

Defines the Enum object.

Summary
EnumDefines the Enum object.
Functions
new
New EnumA base object for all Enum objects.
Functions
IsValidVerifies the Enum.

Functions

new

local function new (_,
_subtype,
options_table)

Parameters

_subtypeA string identifying the Enum.
options_tableA table of valid options for the Enum.

Returns

A new Enum object.

New Enum

A base object for all Enum objects.

Summary
Functions
IsValidVerifies the Enum.

Functions

IsValid

function new_enum:IsValid (key)

Verifies the Enum.  Searches for matching key or value within the options_table to guarantee the passing of valid options where necessary.

Paramaters

keyThe option to be tested.

Returns

A boolean value.

local function new (_,
_subtype,
options_table)
function new_enum:IsValid (key)
Verifies the Enum.
Close