class
Utility for working with idiomatic Lua object-oriented patterns
Functions
classOf
(object
)
Given an object
, return its class
instanceOf
(object
, cls
)
Given an object
and a class
, return if that object is an instance of another class/superclass
Equivalent to class.extends(class.classOf(object), cls
)
getSuperclass
(theClass
)
Get the superclass of a class
extends
(subclass
, superclass
)
Check if one class extends another class