Module:SetVariablesClass

local util_vars = require('Module:VarsUtil') local LCS = require('Module:LuaClassSystem')

local p = LCS.class.abstract

p.prefix = nil -- define in subclasses

function p:_set(key, val) util_vars.setVar(self.prefix .. key, val or self:_get(key)) end

function p:_get(var) return util_vars.getVar(self.prefix .. var) end

return p