From d13bcde2b9306e0c87b055faed88da76bd3ff41e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 13 Oct 2017 16:16:07 -0700 Subject: Renamed repr_if_not_string to "stringify" and added nomsu:stringify for convenience. --- nomsu.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index b937ad8..45a1569 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -578,7 +578,7 @@ do if statement then self:error("Cannot use [[" .. tostring(bit.src) .. "]] as a string interpolation value, since it's not an expression.") end - insert(concat_parts, "nomsu.utils.repr_if_not_string(" .. tostring(expr) .. ")") + insert(concat_parts, "nomsu:stringify(" .. tostring(expr) .. ")") _continue_0 = true until true if not _continue_0 then @@ -905,6 +905,9 @@ do self.repr = function(self, ...) return repr(...) end + self.stringify = function(self, ...) + return utils.stringify(...) + end self.loaded_files = setmetatable({ }, { __index = parent and parent.loaded_files }) -- cgit v1.2.3