| 1 | package Sah::Schema::perl::version; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 7 | 1 | our $DATE = '2024-02-16'; # DATE | |
| 8 | 1 | our $DIST = 'Sah-SchemaBundle-Perl'; # DIST | |
| 9 | 1 | our $VERSION = '0.050'; # VERSION | |
| 10 | |||
| 11 | 1 | our $schema = [obj => { | |
| 12 | summary => 'Perl version object', | ||
| 13 | description => <<'_', | ||
| 14 | |||
| 15 | Use this schema if you want to accept a version object (see <pm:version>). | ||
| 16 | Coercion from string is provided. | ||
| 17 | |||
| 18 | _ | ||
| 19 | isa => 'version', | ||
| 20 | 'x.perl.coerce_rules' => [ | ||
| 21 | 'From_str::perl_version', | ||
| 22 | ], | ||
| 23 | }]; | ||
| 24 | |||
| 25 | 1 | 1; | |
| 26 | # ABSTRACT: Perl version object | ||
| 27 | |||
| 28 | __END__ | ||