Methods


ClassUtils.getClassName(class: table, parent_check: boolean?)

Returns the name of a given class, using the name of the global variable for the class.
If it cannot find a global variable associated with the class, it will instead return the name of the class it extends, along with the class's ID.

@param class — The class instance to check.

@param parent_check — Whether the function should only return the extended class, and not attach the class's ID, if the class does not have a global name.

@return name — The name of the class, or nil if it cannot find one.

Arguments:

class: table

The class instance to check.

parent_check: boolean?

Whether the function should only return the extended class, and not attach the class's ID, if the class does not have a global name.

Returns:

name: string?

The name of the class, or nil if it cannot find one.



ClassUtils.iterClass(class: table)

Iterates through the fields of a class (e.g. pairs) excluding special class variables and functions

Arguments:

class: table

Returns:

1: fun( table<<K? <K)<K
2: table



Fields



Undocumented