| 1 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | package HTML::FormFu::Constraint::Bool; | ||
| 4 | 5 | $HTML::FormFu::Constraint::Bool::VERSION = '2.09'; | |
| 5 | # ABSTRACT: Boolean Constraint | ||
| 6 | |||
| 7 | 5 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 5 | extends 'HTML::FormFu::Constraint::Regex'; | |
| 9 | |||
| 10 | 12 | ▶ | sub regex { |
|
Subroutine
regex: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | 12 | return qr/^[01]?\z/; | |
| 12 | } | ||
| 13 | |||
| 14 | 5 | __PACKAGE__->meta->make_immutable; | |
| 15 | |||
| 16 | 5 | 1; | |
| 17 | |||
| 18 | __END__ | ||