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

CountLimit : SeenBefore : AbstractConstraint : Object
ExtensionExtension

Counts how many items have been presented to it. returns true until limit false thereafter

Description

Counts how many items have been presented to it. returns true until the limit has been reached, thereafter returns false.

Class Methods

CountLimit.new(limit)

Arguments:

limit

Inherited class methods

Instance Methods

.count

.count = value

.limit

.limit = value

.value

.reset

Inherited instance methods