Added string includes using import method.

This commit is contained in:
Nico Prins 2015-05-06 18:05:19 -07:00
parent dbf60e3dc5
commit 656fd17dc4

View File

@ -60,6 +60,9 @@ local function new(class)
if getmetatable(inc) then inc = {inc} end if getmetatable(inc) then inc = {inc} end
for _, other in ipairs(inc) do for _, other in ipairs(inc) do
if type(other) == "string" then
other = import(other)
end
include(class, other) include(class, other)
end end