new ClassUtils()
A class to help to manipulate Kekule classes.
- Source:
Methods
-
(static) getLastClassName(className) → {String}
-
Returns last name part of className (e.g., 'ClassA' from 'Kekule.Scope.ClassA').
Parameters:
Name Type Description className
String - Source:
Returns:
- Type
- String
-
(static) getShortClassName(className) → {String}
-
Get name without Kekule prefix
Parameters:
Name Type Description className
String - Source:
Returns:
- Type
- String
-
(static) makeSingleton(classObj) → {Object}
-
Make class behavior like a singleton, add getInstance static method to it.
Parameters:
Name Type Description classObj
Object - Source:
Returns:
- Type
- Object