class method SpahQL_classCreate
.SpahQL_classCreate(name[, constructor][, klassProps][, instanceProps]) → Function
-
name
(String
) – The name for the new Spah class, e.g. “SpahQL.Foo.Bar” -
constructor
(Function
) – The constructor function for this class. If not provided, will search the prototype chain for “init” -
klassProps
(Object
) – A hash of class-level properties and functions -
instanceProps
(Object
) – A hash of instance-level properties and functions to be applied to the class’ prototype.
Creates a class internal to the Spah library and namespace.