Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
52 lines (42 loc) · 3.75 KB

cp.rx.go.Statement.Definition.md

File metadata and controls

52 lines (42 loc) · 3.75 KB

docs » cp.rx.go.Statement.Definition


A Statement is defined before being executable. A definition is initiated with the Statement:modifier(...) method.

API Overview

  • Functions - API calls offered directly by the extension
  • is
  • Methods - API calls which can only be made on an object returned by a constructor
  • define
  • onInit
  • onObservable

API Documentation

Functions

Signature cp.rx.go.Statement.Definition.is(thing) -> boolean
Type Function
Description Checks if the thing is an instance of Statement.Definition.
Parameters
  • thing - The thing to check.
Returns
  • true if the thing is a Statement.Definition.

Methods

Signature cp.rx.go.Statement.Definition:define() -> Statement
Type Method
Description Completes the definition of the Statement.
Parameters
  • None
Returns
Signature cp.rx.go.Statement.Definition:onInit(initFn) -> Statement.Definition
Type Method
Description Defines the function which will be called to initialise the context.
Parameters
  • initFn - The init function.
Returns
  • The Statement Definition
Signature cp.rx.go.Statement.Definition:onObservable(observableFn) -> Statement.Definition
Type Method
Description Defines the function which will be called to create the Observable
Parameters
  • observableFn - The observable creator function.
Returns
  • The Statement.Definition