Module:SetVariablesClass

local Class = require('Module:Class').Class local util_vars = require('Module:VarsUtil')

local p = Class

function p:new(prefix) self.prefix = prefix end

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