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:
@@ -34,6 +34,8 @@ local Object = require "core.object"
|
||||
---@field hide_messages boolean
|
||||
local StatusView = View:extend()
|
||||
|
||||
function StatusView:__tostring() return "StatusView" end
|
||||
|
||||
---Space separator
|
||||
---@type string
|
||||
StatusView.separator = " "
|
||||
@@ -72,6 +74,8 @@ StatusView.separator2 = " | "
|
||||
---@field cached_item core.statusview.styledtext
|
||||
local StatusViewItem = Object:extend()
|
||||
|
||||
function StatusViewItem:__tostring() return "StatusViewItem" end
|
||||
|
||||
---Available StatusViewItem options.
|
||||
---@class core.statusview.item.options : table
|
||||
---A condition to evaluate if the item should be displayed. If a string
|
||||
|
||||
Reference in New Issue
Block a user