| 1 | package MooseX::Modern::Role; | ||
| 2 | 1 | $MooseX::Modern::Role::VERSION = '0.0200'; | |
| 3 | 1 | ▶ | use Moose::Role (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Moose::Exporter; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Moose::Util::TypeConstraints (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use MooseX::AttributeShortcuts (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use MooseX::HasDefaults::RO (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use namespace::autoclean (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | Moose::Exporter->setup_import_methods(also => ['Moose::Role']); | |
| 12 | |||
| 13 | 0 | ▶ | sub init_meta { |
|
Subroutine
init_meta: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | 0 | my $class = shift; | |
| 15 | 0 | my $caller = scalar caller(); | |
| 16 | 0 | my %params = @_; | |
| 17 | 0 | my $for_class = $params{for_class}; | |
| 18 | |||
| 19 | 0 | Moose::Role->init_meta(@_); | |
| 20 | 0 | Moose::Util::TypeConstraints->import({ into => $for_class }); | |
| 21 | 0 | MooseX::AttributeShortcuts->init_meta(@_); | |
| 22 | 0 | MooseX::HasDefaults::RO->import({ into => $caller }); | |
| 23 | |||
| 24 | 0 | namespace::autoclean->import( -cleanee => $for_class ); | |
| 25 | } | ||
| 26 | |||
| 27 | 1 | 1; | |
| 28 | |||
| 29 | # ABSTRACT: Precision roles for Modern Perl | ||
| 30 | |||
| 31 | __END__ | ||