File Coverage

blib/lib/MooseX/ExtraArgs/Meta/ToClass.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package # Hide from the indexer for now until docs are added later.
2             MooseX::ExtraArgs::Meta::ToClass;
3 1     1   10520 use Moose::Role;
  1         2  
  1         7  
4              
5             around apply => sub {
6             my $orig = shift;
7             my $self = shift;
8             my $from_role = shift;
9             my $to_class = shift;
10              
11             Moose::Util::MetaRole::apply_base_class_roles(
12             for => $to_class,
13             roles => ['MooseX::ExtraArgs::Meta::Object'],
14             );
15              
16             return $self->$orig( $from_role, $to_class );
17             };
18              
19             1;