Home Reference Source Repository
import Wyst from 'wyst/es6/Wyst.js'
public class | source

Wyst

Extends:

eventemitter2~EventEmitterExpressive → Wyst

Constructor Summary

Public Constructor
public

constructor(config: Object)

generates our main Wyst instance

Member Summary

Public Members
public

config: *

public
public
public get

uptime: *

returns how long this Wyst instance has been alive for

Method Summary

Public Methods
public

assign(extensions: Object, val: Any): this

sets an internal extension to

public

alerts any interested Listeners that Wyst is now ready.

public

get(namespace: *): *

returns the value for a namespace

public

plugin(namespace: String, init: Function): this

initializes a plugin with the Wyst instance

Inherited Summary

From class Expressive
public static

create(): *

creates a new inherited instance

public

debug: *

public

is(state: string): *

expressive emit

public

when(): *

expressive once

Public Constructors

public constructor(config: Object) source

generates our main Wyst instance

Override:

Expressive#constructor

Params:

NameTypeAttributeDescription
config Object

The necessary config for our instance

Public Members

public config: * source

public extensions: * source

public startTime: * source

public get uptime: * source

returns how long this Wyst instance has been alive for

Properties:

NameTypeAttributeDescription
uptime *

Public Methods

public assign(extensions: Object, val: Any): this source

sets an internal extension to

Params:

NameTypeAttributeDescription
extensions Object

the properties and values to assign to the Wyst instance

val Any

the val for namespace

Return:

this

public bringOnline() source

alerts any interested Listeners that Wyst is now ready.

public get(namespace: *): * source

returns the value for a namespace

Params:

NameTypeAttributeDescription
namespace *

Return:

*

public plugin(namespace: String, init: Function): this source

initializes a plugin with the Wyst instance

Params:

NameTypeAttributeDescription
namespace String

The namespace for the plugin to live under

init Function

Return:

this