Constraint:
Filter:
crucial-library/Classes (extension) | Libraries > crucial > Constraints

Constraint
ExtensionExtension

evaluates the condition using a function

Description

Constraint takes a function that it evaluates whenever the constraint itself is evaluated. Its main benefit then over a simple function is that it responds to .not .or .and .xor .reject .select by returning the logical compound constraint.

Class Methods

.new

Arguments:

function

Instance Methods

.function

.value

Arguments:

obj