added simple dump() serializer for debugging
This commit is contained in:
1 parent
0e48785e0e
commit
80efc822d4
1 file changed
+6
@@ -17,6 +17,12 @@ function DocSettings:savesetting(key, value)
|
||||
self.data[key] = value
|
||||
end
|
||||
|
||||
function dump(data)
|
||||
local out = {}
|
||||
DocSettings:_serialize(data, out, 0)
|
||||
return table.concat(out)
|
||||
end
|
||||
|
||||
-- simple serialization function, won't do uservalues, functions, loops
|
||||
function DocSettings:_serialize(what, outt, indent)
|
||||
if type(what) == "table" then
|
||||
|
||||
Reference in new issue
Block a user