Sha256: 87234003061ef57166538f13801e76e1f843da79125bd95b4be7f261e4725cea

Contents?: true

Size: 204 Bytes

Versions: 2

Compression:

Stored size: 204 Bytes

Contents

## Comparable#cap

    require 'facets/comparable/cap'

Put a cap on what a number can be.

    3.cap(4).assert == 3
    4.cap(4).assert == 4
    5.cap(4).assert == 4

This is very similar to `#at_most`.

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 demo/core/comparable/cap.md
facets-3.1.0 demo/core/comparable/cap.md