checkInheritance : boolean
If the classOrMethod
is a class
, the function checks if the given class
has been inherited from classOrMethod
, or if the classOrMethod
is a method, then it simply checks if any of the classes that the given class
inherits from contains the method.
Default syntax
local isInherited = ClassPP.Util.checkInheritance(classOne, classTwo) -- For classes
local isInherited = ClassPP.Util.checkInheritance(class, method) -- For methods
Parameters
class: class | The class . |
classOrMethod: class | () -> () | The second class or the method. |
Returns
boolean |