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

Constraint : AbstractConstraint : Object
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

Constraint.new(function)

Arguments:

function

Inherited class methods

Instance Methods

.function

.function = value

.value(obj)

Arguments:

obj

Inherited instance methods