From a15847e5cae47a40113e504fc7914eb84a6f1171 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 12 Sep 2021 22:51:34 +0200 Subject: [PATCH] Document `Object.get_class()/is_class()` ignores `class_name` declaration --- doc/classes/Object.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index c9e9a0699c1..57b5de7c762 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -331,7 +331,8 @@ - Returns the object's class as a [String]. + Returns the object's class as a [String]. See also [method is_class]. + [b]Note:[/b] [method get_class] does not take [code]class_name[/code] declarations into account. If the object has a [code]class_name[/code] defined, the base class name will be returned instead. @@ -441,7 +442,8 @@ - Returns [code]true[/code] if the object inherits from the given [code]class[/code]. + Returns [code]true[/code] if the object inherits from the given [code]class[/code]. See also [method get_class]. + [b]Note:[/b] [method is_class] does not take [code]class_name[/code] declarations into account. If the object has a [code]class_name[/code] defined, [method is_class] will return [code]false[/code] for that name.