Module:InstantiateClass

local util_args = require('Module:ArgsUtil')

local p = {} local h = {}

function p.main(frame) local args = util_args.merge local class = require(('Module:%s'):format(args.class)) local method = args.method local instance = class(args) return instance[method](instance, args) end

return p