Is it possible to declare methods with a variable?
local index = {} for x, r in pairs({'An','Example'}) do index:[r] = function () end -- Doing this throws a syntax error end
rather than
local index = {} function index:An () end function index:Example () end