| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | package Data::Rx::Type::Rx; | ||
| 4 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | $Data::Rx::Type::Rx::VERSION = '0.103520'; | |
| 6 | } | ||
| 7 | # ABSTRACT: an individual Rx type definition | ||
| 8 | |||
| 9 | |||
| 10 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | 1 | my ($class, %options) = @_; | |
| 12 | 1 | bless \%options, $class; | |
| 13 | } | ||
| 14 | |||
| 15 | |||
| 16 | 1 | ▶ | sub type_uri { $_[0]->{type_uri} } |
|
Subroutine
type_uri: called CC=1 SCAR=0.0
Pod
documented
| |||
| 17 | |||
| 18 | |||
| 19 | 0 | ▶ | sub new_checker { |
|
Subroutine
new_checker: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | 0 | my ($self, $schema_arg, $rx) = @_; | |
| 21 | |||
| 22 | 0 | $self->{checker} = $rx->make_schema($self->{as}); | |
| 23 | |||
| 24 | 0 | return $self; | |
| 25 | } | ||
| 26 | |||
| 27 | |||
| 28 | 0 | ▶ | sub check { |
|
Subroutine
check: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | 0 | my ($self, $value) = @_; | |
| 30 | |||
| 31 | 0 | return $self->{checker}->check($value); | |
| 32 | } | ||
| 33 | |||
| 34 | 1 | 1; | |
| 35 | |||
| 36 | __END__ | ||