Prototype: support booleans
This commit is contained in:
parent
8080b79b68
commit
cceeebbe82
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue