Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstevedonovan <steve.j.donovan@gmail.com>2011-02-12 11:08:47 +0300
committerstevedonovan <steve.j.donovan@gmail.com>2011-02-12 11:08:47 +0300
commit5812574071dc84a7e866a8f20e16a21f041b0e11 (patch)
treef4031cb4a37c7be655bf82487a2d9c0195c8ccad
parent5b2f36da19c9e2e43f2a576d5119f24d714f7140 (diff)
stringio objects have dummy close() methods0.9.1
-rw-r--r--lua/pl/stringio.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/pl/stringio.lua b/lua/pl/stringio.lua
index d9bf9de..cde3b95 100644
--- a/lua/pl/stringio.lua
+++ b/lua/pl/stringio.lua
@@ -26,6 +26,9 @@ function SW:value()
return concat(self.tbl)
end
+function SW:close() -- for compatibility only
+end
+
--- Reader class
local SR = {}
SR.__index = SR
@@ -94,6 +97,9 @@ function SR:lines()
return self:read()
end
end
+
+function SR:close() -- for compatibility only
+end
--- create a file-like object which can be used to construct a string.
-- The resulting object has an extra value() method for