API Docs for: 0.0.0
Show:

__subject Class

Defined in: src/index.js:25
Module: subject

Methods

assign

(
  • obj
  • data
  • [descriptor]
)
private

Parameters:

  • obj Object
  • data Object
  • [descriptor] Object optional

assignAccessor

(
  • obj
  • properties
  • descriptor
)
type

Defines properties using accessor descriptor

Parameters:

  • obj type

    [description]

  • properties type

    [description]

  • descriptor type

    [description]

Returns:

type:

[description]

assignData

(
  • obj
  • data
  • descriptor
)
type

Defines properties using data descriptors.

Parameters:

  • obj type

    [description]

  • data type

    [description]

  • descriptor type

    [description]

Returns:

type:

[description]

extend

(
  • extensions
)

Define a function that when run will return an instance of its prototype object.

All arguments passed to the extend method will be passed on to this.prototype.extend method.

Parameters:

  • extensions Object

initialize

()

Defined in src/index.js:40

This method will be called before returning the instance. Put your initialization code here.

proto

()

Augments the prototype.

protoMerge

(
  • prop
  • [merge]
)

Merges a property into the prototype object instead of overwriting it.

Parameters:

  • prop String | Object
  • [merge] Object optional

Properties

prototype

Object

Defined in src/index.js:30

The prototype object. When the __subject function is run, it will create an instance of this.prototype and call its initialize method.