aboutsummaryrefslogtreecommitdiff
path: root/lua_obj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua_obj.lua')
-rw-r--r--lua_obj.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua_obj.lua b/lua_obj.lua
index 076ac1c..e766c34 100644
--- a/lua_obj.lua
+++ b/lua_obj.lua
@@ -424,6 +424,10 @@ do
end,
__len = function(self)
return #tostring(self)
+ end,
+ parenthesize = function(self)
+ self:prepend("(")
+ return self:append(")")
end
}
_base_0.__index = _base_0