FuncSpec:
Filter:
MethodController/Classes (extension) | MethodControllerQuark

FuncSpec
ExtensionExtension

a Spec that can be anything

Description

A Spec is basically an Object that translates data ( map/unmap), secures that the data fits a specification (constrain). This Spec holds functions to enact these duties.

Class Methods

.new

Creates a FuncSpec

Arguments:

mapFunc

a Function to be called on map

unmapFunc

a Function to be called on unmap

constrainFunc

a Function to be called on constrain

defaultFunc

a Function to be called on default

Returns:

a FuncSpec

Instance Methods

The instance methods are the most important of ControlSpec

Examples

A simple example that could be also with a ControlSpec