Home Reference Source

Variable

Static Public Summary
public

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

Create a new instance of Perimeter.

public

Create a new instance of Sandbox.

public

guard: *

The definition of guard decorator.

public
public
public
public

isRule: *

public
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 Logger: * source

public VERSION: string source

public createPerimeter: * source

Create a new instance of Perimeter.

public createRule: * source

Create a new instance of Perimeter.

public createSandbox: * source

Create a new instance of Sandbox.

public guard: * source

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

public isPerimeter: * source

public isPurpose: * source

public isRule: * source

public isSandbox: * source

public sandbox: * source