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
that the check will be made from.
classOrMethod: class | () ->()
The
class
or the method
that will be checked.
Returns