| 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::TypeBundle::Rx; | ||||||||||
| 4 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | $Data::Rx::TypeBundle::Rx::VERSION = '0.103520'; | |||||||||
| 6 | } | ||||||||||
| 7 | # ABSTRACT: Build types from Data::Rx schema (experimental) | ||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use base 'Data::Rx::TypeBundle'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | use Data::Rx::Type::Rx; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | |||||||||||
| 14 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 15 | 1 | my ($class, $args) = @_; | |||||||||
| 16 | 1 | ▶ | $args->{type_plugins} = [] unless $args->{type_plugins}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 1 | my $self = { %$args }; | |||||||||
| 18 | 1 | bless $self, $class; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 1 | ▶ | sub _prefix_pairs { | ||||||||
|
Subroutine
_prefix_pairs: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 1 | my $self = shift; | |||||||||
| 23 | 1 | return (); | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 1 | ▶ | sub register_type { | ||||||||
|
Subroutine
register_type: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 28 | 1 | my ($self, $type_uri, $as) = @_; | |||||||||
| 29 | |||||||||||
| 30 | 1 | push @{ $self->{type_plugins} }, Data::Rx::Type::Rx->new( | |||||||||
| 31 | type_uri => $type_uri, | ||||||||||
| 32 | as => $as, | ||||||||||
| 33 | ); | ||||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | |||||||||||
| 37 | 1 | ▶ | sub type_plugins { | ||||||||
|
Subroutine
type_plugins: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 38 | 1 | my $self = shift; | |||||||||
| 39 | 1 | return @{ $self->{type_plugins} }; | |||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | |||||||||||
| 43 | 1 | 1; | |||||||||
| 44 | |||||||||||
| 45 | __END__ | ||||||||||