Module classutil
Utility for creating class-like objects with separate sets of static and instance functions.
Functions
makeClass() | Create a new class type. |
deriveClass(parent) | Create a new class type derived from another type. |
Functions
- makeClass()
-
Create a new class type.
Returns:
- A table for static class methods.
- A table for class instance methods.
- The metatable for class instances.
- deriveClass(parent)
-
Create a new class type derived from another type.
Parameters:
- parent The static method table for the parent type.
Returns:
- A table for static class methods.
- A table for class instance methods.
- The metatable for class instances.