Add __tostring to component class

This commit is contained in:
Insality 2020-09-23 01:21:44 +03:00
parent e9720d1676
commit ba12a9868a

View File

@ -189,6 +189,11 @@ function Component.initialize(self, name, interest)
end end
function Component:__tostring()
return self._component.name
end
--- Create new component. It will inheritance from basic --- Create new component. It will inheritance from basic
-- druid component. -- druid component.
-- @function Component.create -- @function Component.create