Compatible with CommonJS and AMD.
var Cla55 = require('cla55');
Cla55.extend(protoProps, staticProps, _super);
Cla55.create(Parent, protoProps, staticProps, _super);
Shortcut to create a new class and inherit from Cla55
.
protoProps
[Object] A hash of prototype methods/properties to extend (includingconstructor
method)staticProps
[Object, optional] A hash of static methods to extend_super
[Boolean, optional] Hook methods with._super()
and._superApply()
methods
- [Function] Sub class inherited from
Cla55
Class create helper to create a new class and inherit from Parent
.
Parent
[Function] A function to inheritprotoProps
[Object] A hash of prototype methods/properties to extend (includingconstructor
method)staticProps
[Object, optional] A hash of static methods to extend_super
[Boolean, optional] Hook methods with._super()
and._superApply()
methods
- [Function] Sub class inherited from
Parent
Direct expose of the base class Cla55
.
- [Function] Base class
Cla55