mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
Add __tostring to component class
This commit is contained in:
parent
e9720d1676
commit
ba12a9868a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user