summaryrefslogtreecommitdiff
path: root/demo/Enum.lua
diff options
context:
space:
mode:
Diffstat (limited to 'demo/Enum.lua')
-rw-r--r--demo/Enum.lua18
1 files changed, 0 insertions, 18 deletions
diff --git a/demo/Enum.lua b/demo/Enum.lua
deleted file mode 100644
index d7fe469..0000000
--- a/demo/Enum.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local Enum = function (enumStrings)
- local enumTable = {}
- for _,str in pairs(enumStrings) do
- enumTable[str] = str
- end
-
- local enum = {}
- setmetatable(enum, { __index = enumTable,
- __newindex = function(table, key, value)
- error('Attempt to edit enum!')
- end
- }
- )
-
- return enum
-end
-
-return Enum