Uni-Logo

Function Contracts

back to Contracts

Method Contract

(TreatJS 1.x)

Description

MethodContract ( objectContract, contract, context );

Parameters

objectContract
Object Contract.
range
Range Contract.
context
This Contract.

Simple Method Contract

(TreatJS 1.x)

Description

SimpleMethodContract ( [contract1[, contract2[, ...]]], contractn, contractm );

Parameters

contract1, contract2, ...
Argument Contract.
contractn
Range Contract.
contractn
This Contract.

Advanced Method Contract

(TreatJS 1.x)

Description

AdvancedMethodContract ( domain, range, context[, strict] );

Parameters

domain
JavaScript Array or JavaScript Object.
range
Range Contract.
context
This Contract.
strict
Invoke strict mode.