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