Trimming some unnecessary empty lines in classic library

This commit is contained in:
SweetSea-ButImNotSweet
2024-04-19 12:52:31 +07:00
parent 7e7c5301c5
commit aefc660dd4

View File

@@ -11,11 +11,9 @@
local Object = {}
Object.__index = Object
function Object:new()
end
function Object:extend()
local cls = {}
for k, v in pairs(self) do
@@ -29,7 +27,6 @@ function Object:extend()
return cls
end
function Object:implement(...)
for _, cls in pairs({...}) do
for k, v in pairs(cls) do
@@ -40,7 +37,6 @@ function Object:implement(...)
end
end
function Object:is(T)
local mt = getmetatable(self)
while mt do
@@ -52,17 +48,14 @@ function Object:is(T)
return false
end
function Object:__tostring()
return "Object"
end
function Object:__call(...)
local obj = setmetatable({}, self)
obj:new(...)
return obj
end
return Object
return Object