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
|
||||
|
||||
|
||||
function Component:__tostring()
|
||||
return self._component.name
|
||||
end
|
||||
|
||||
|
||||
--- Create new component. It will inheritance from basic
|
||||
-- druid component.
|
||||
-- @function Component.create
|
||||
|
Loading…
x
Reference in New Issue
Block a user