From cb28f52b410f3fbcb01bcc8ef8668de46d8aba68 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 25 Apr 2018 15:37:13 -0700 Subject: Updated block-style text interpolation to have less redundancy. --- lua_obj.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua_obj.lua') 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 -- cgit v1.2.3