Prototype: support booleans
This commit is contained in:
parent
8080b79b68
commit
cceeebbe82
@ -42,7 +42,7 @@ function Prototype:__tostring()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return "{"..r.."}"
|
return "{"..r.."}"
|
||||||
elseif t=="number" then
|
elseif t=="number" or t=="boolean" then
|
||||||
return tostring(self)
|
return tostring(self)
|
||||||
elseif t=="string" then
|
elseif t=="string" then
|
||||||
return "\""..self:gsub("\\","\\\\"):gsub("\"","\\\"").."\""
|
return "\""..self:gsub("\\","\\\\"):gsub("\"","\\\"").."\""
|
||||||
|
Loading…
Reference in New Issue
Block a user