| 1 | package MooseX::AttributeFilter; | ||
| 2 | 5 | ▶ | use 5.008009; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 5 | our $VERSION = "0.09"; | |
| 7 | |||
| 8 | 5 | ▶ | use Moose (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 5 | ▶ | use Moose::Exporter; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 5 | Moose::Exporter->setup_import_methods(); | |
| 12 | |||
| 13 | 12 | ▶ | sub init_meta { |
|
Subroutine
init_meta: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 12 | my ($class_name, %args) = @_; | |
| 15 | 12 | my $caller = $args{for_class}; | |
| 16 | 12 | my $trait = 'MooseX::AttributeFilter::Trait::Attribute'; | |
| 17 | |||
| 18 | 12 | Moose::Util::MetaRole::apply_metaroles( | |
| 19 | for => $caller, | ||
| 20 | class_metaroles => { | ||
| 21 | attribute => [ $trait ], | ||
| 22 | }, | ||
| 23 | role_metaroles => { | ||
| 24 | attribute => [ $trait . '::Role' ], | ||
| 25 | applied_attribute => [ $trait ], | ||
| 26 | }, | ||
| 27 | parameter_metaroles => { | ||
| 28 | applied_attribute => [ $trait ], | ||
| 29 | }, | ||
| 30 | parameterized_role_metaroles => { | ||
| 31 | applied_attribute => [ $trait ], | ||
| 32 | }, | ||
| 33 | ); | ||
| 34 | } | ||
| 35 | |||
| 36 | 5 | 1; | |
| 37 | __END__ | ||