mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Add __tostring to component class
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user