« lib/Reaction/UI/ViewPort/Field/DateTime.pm
↑ Summary
lib/ComponentUI/TestModel/Foo/Action/SearchSpec/Update.pm »
| 1 | package Reaction::Role::Parameterized; | ||||||||||
| 2 | |||||||||||
| 3 | 4 | ▶ | use MooseX::Role::Parameterized (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 4 | ▶ | use Reaction::ClassExporter; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 4 | ▶ | use Reaction::Class; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 4 | ▶ | use Moose::Meta::Class; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 4 | ▶ | use namespace::clean -except => [ qw(meta) ]; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | override exports_for_package => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 11 | 0 | my ($self, $package) = @_; | |||||||||
| 12 | 0 | my %exports = $self->SUPER::exports_for_package($package); | |||||||||
| 13 | 0 | delete $exports{class}; | |||||||||
| 14 | 0 | return %exports; | |||||||||
| 15 | 4 | }; | |||||||||
| 16 | |||||||||||
| 17 | 8 | ▶ | override default_base => sub { () }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 18 | |||||||||||
| 19 | 8 | ▶ | override exporter_for_package => sub { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 20 | 8 | my ($self) = @_; | |||||||||
| 21 | 8 | my ($import) = Moose::Exporter->build_import_methods( | |||||||||
| 22 | also => ['MooseX::Role::Parameterized'], | ||||||||||
| 23 | with_caller => ['role'], | ||||||||||
| 24 | ); | ||||||||||
| 25 | 8 | $import; | |||||||||
| 26 | 4 | }; | |||||||||
| 27 | |||||||||||
| 28 | 4 | ▶ | override next_import => sub { }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 29 | |||||||||||
| 30 | 8 | ▶ | sub role (&) { | ||||||||
|
Subroutine
role: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 31 | 8 | my $caller = shift; | |||||||||
| 32 | 8 | my ($code) = @_; | |||||||||
| 33 | 81 | ▶ | &MooseX::Role::Parameterized::role($caller, sub { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.1
| |||||||||||
| 34 | 81 | my ($p, %args) = @_; | |||||||||
| 35 | $args{operating_on} = Moose::Util::MetaRole::apply_metaroles( | ||||||||||
| 36 | for => $args{operating_on}->name, | ||||||||||
| 37 | 81 | ▶ | role_metaroles => { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 38 | applied_attribute => ['Reaction::Role::Meta::Attribute'], | ||||||||||
| 39 | }, | ||||||||||
| 40 | ) if Moose->VERSION >= 1.9900; | ||||||||||
| 41 | 81 | $code->($p, %args); | |||||||||
| 42 | 8 | }); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 4 | __PACKAGE__->meta->make_immutable; | |||||||||
| 46 | |||||||||||
| 47 | |||||||||||
| 48 | 4 | 1; | |||||||||
| 49 | |||||||||||
| 50 | =head1 NAME | ||||||||||
| 51 | |||||||||||
| 52 | Reaction::Role | ||||||||||
| 53 | |||||||||||
| 54 | =head1 DESCRIPTION | ||||||||||
| 55 | |||||||||||
| 56 | =head1 SEE ALSO | ||||||||||
| 57 | |||||||||||
| 58 | L<Moose::Role> | ||||||||||
| 59 | |||||||||||
| 60 | =head1 AUTHORS | ||||||||||
| 61 | |||||||||||
| 62 | See L<Reaction::Class> for authors. | ||||||||||
| 63 | |||||||||||
| 64 | =head1 LICENSE | ||||||||||
| 65 | |||||||||||
| 66 | See L<Reaction::Class> for the license. | ||||||||||
| 67 | |||||||||||
| 68 | =cut | ||||||||||