Provides access to Object Oriented JavaScript utilities
Uses
Topiarist
to provide most of the OO functionality.Methods
-
(static) classFulfills(instance, interface)
-
Returns true if instances of the class will be created supporting everything on the interface.
Parameters:
Name Type Description instance
Object interface
Class -
(static) classIsA(parent)
-
Returns true if the class has been declared to be descended from the parent, e.g. through extension, implementation, etc.
Parameters:
Name Type Description Class parent
Class -
(static) extend(subclass, superclass)
-
Extend one class from another.
Parameters:
Name Type Description subclass
Class superclass
Class -
(static) fulfills(instance, interfac})
-
Returns true if the instance supports everything on the interface.
Parameters:
Name Type Description instance
Class interfac}
Class -
(static) inherit(class, parent)
-
Provides multiple inheritance by copying functionality from the parent to the class.
Parameters:
Name Type Description class
Class parent
Class -
(static) isA(instance, parent)
-
Returns true if the instance is of a type which has been declared to be descended from the parent, e.g. because it’s extended or implemented or mixed-in.
Parameters:
Name Type Description instance
Object parent
Class -
(static) mixin(class, mixin)
-
Provides mixin inheritance, sandboxing mixin methods that are copied onto the class.
Parameters:
Name Type Description class
Class mixin
Class