aboutsummaryrefslogtreecommitdiff
path: root/lua_obj.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-04-25 15:37:13 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-04-25 15:37:47 -0700
commitcb28f52b410f3fbcb01bcc8ef8668de46d8aba68 (patch)
treea033da16a67e92d083c2923caea3696422481e3b /lua_obj.lua
parentec5d730fa0ac26ace7fdd6a1de5fed9e05c133c0 (diff)
Updated block-style text interpolation to have less redundancy.
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