API Docs for: 0.0.0
Show:

__subject Class

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

Mock

Item Index

Properties

Methods

extend

(
  • extensions
)

Defined in src/index.js:177

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

proto

()

Defined in src/index.js:110

Augments the prototype.

protoMerge

(
  • prop
  • [merge]
)

Defined in src/index.js:139

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:94

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