Variable
Static Public Summary | ||
public |
Kindergarten: * Main namespace is exported by default to keep Kindergarten compatible with versions < 1.0 and for programmers that like to use the classes through the namespace. |
|
public |
Logger: * |
|
public |
|
|
public |
Create a new instance of Perimeter. |
|
public |
createRule: * Create a new instance of Perimeter. |
|
public |
Create a new instance of Sandbox. |
|
public |
guard: * The definition of |
|
public |
isGoverness: * |
|
public |
isPerimeter: * |
|
public |
isPurpose: * |
|
public |
isRule: * |
|
public |
isSandbox: * |
|
public |
sandbox: * |
Static Public
public Kindergarten: * source
import Kindergarten from 'kindergarten/src/Kindergarten.js'
Main namespace is exported by default to keep Kindergarten compatible with versions < 1.0 and for programmers that like to use the classes through the namespace.
public createPerimeter: * source
import createPerimeter from 'kindergarten/src/kindergarten/createPerimeter.js'
Create a new instance of Perimeter.
public createRule: * source
import createRule from 'kindergarten/src/kindergarten/createRule.js'
Create a new instance of Perimeter.
public createSandbox: * source
import createSandbox from 'kindergarten/src/kindergarten/createSandbox.js'
Create a new instance of Sandbox.
public guard: * source
import guard from 'kindergarten/src/kindergarten/decorators/guard.js'
The definition of guard
decorator. Guard decorator is used to protect
methods in the sandbox. You can pass the name of the rule as a first
argument otherwise the name of the rule will be detected from name of the
protected method. Second argument can be a callback function or return value
that should be returned when child is not allowed to perform certain action.
Example:
class Foo {
public isGoverness: * source
import isGoverness from 'kindergarten/src/kindergarten/utils/isGoverness.js'
public isPerimeter: * source
import isPerimeter from 'kindergarten/src/kindergarten/utils/isPerimeter.js'