Skip to content

Commit

Permalink
added name
Browse files Browse the repository at this point in the history
  • Loading branch information
howmanysmall committed Mar 19, 2021
1 parent 408eac6 commit 90f3fe4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/enumerator/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ local function enumerator(enumName, enumValues)
end

metatable.__index = lockTable({
name = valueName,
value = valueName,
rawName = function()
return valueName
end,

rawValue = function()
return valueName
end,
Expand All @@ -105,7 +110,12 @@ local function enumerator(enumName, enumValues)
end

metatable.__index = lockTable({
name = valueName,
value = rawValue,
rawName = function()
return valueName
end,

rawValue = function()
return rawValue
end,
Expand Down

0 comments on commit 90f3fe4

Please sign in to comment.