| 1 | package Data::Sah::Type::bool; | ||
| 2 | |||
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 6 | ▶ | use Data::Sah::Util::Role 'has_clause'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 6 | ▶ | use Role::Tiny; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 6 | ▶ | use Role::Tiny::With; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 6 | with 'Data::Sah::Type::BaseType'; | |
| 10 | 6 | with 'Data::Sah::Type::Comparable'; | |
| 11 | 6 | with 'Data::Sah::Type::Sortable'; | |
| 12 | |||
| 13 | 6 | has_clause 'is_true', | |
| 14 | v => 2, | ||
| 15 | tags => ['constraint'], | ||
| 16 | schema => ['bool', {}], | ||
| 17 | allow_expr => 1, | ||
| 18 | ; | ||
| 19 | |||
| 20 | 6 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 21 | 6 | our $DATE = '2024-02-16'; # DATE | |
| 22 | 6 | our $DIST = 'Data-Sah'; # DIST | |
| 23 | 6 | our $VERSION = '0.917'; # VERSION | |
| 24 | |||
| 25 | 6 | 1; | |
| 26 | # ABSTRACT: bool type | ||
| 27 | |||
| 28 | __END__ | ||