add a __tostring method to every object (#1534)
* added a stupid __tostring to every object * moved every __tostring to just after the :extend() call --------- Co-authored-by: Adam <adamdharrison@gmail.com> (cherry picked from commit 880e7f1fa1521cdf176f44627a27c901e187058e)
This commit is contained in:
@@ -9,6 +9,8 @@ local View = require "core.view"
|
||||
---@class core.node : core.object
|
||||
local Node = Object:extend()
|
||||
|
||||
function Node:__tostring() return "Node" end
|
||||
|
||||
function Node:new(type)
|
||||
self.type = type or "leaf"
|
||||
self.position = { x = 0, y = 0 }
|
||||
|
||||
Reference in New Issue
Block a user