File Coverage

blib/lib/DDG/Meta/AnyBlock.pm
Criterion Covered Total %
statement 13 13 100.0
branch 1 2 50.0
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 19 20 95.0


line stmt bran cond sub pod time code
1             package DDG::Meta::AnyBlock;
2             our $AUTHORITY = 'cpan:DDG';
3             # ABSTRACT: Implement L to the plugin
4             $DDG::Meta::AnyBlock::VERSION = '1017';
5 11     11   70 use strict;
  11         22  
  11         279  
6 11     11   49 use warnings;
  11         708  
  11         252  
7 11     11   50 use Carp;
  11         22  
  11         1115  
8             require Moo::Role;
9              
10              
11             my %applied;
12              
13             sub apply_keywords {
14 10     10 1 31 my ( $class, $target ) = @_;
15              
16 10 50       37 return if exists $applied{$target};
17 10         22 $applied{$target} = undef;
18              
19 10         28 Moo::Role->apply_role_to_package($target,'DDG::Block::Blockable::Any');
20              
21             }
22              
23             1;
24              
25             __END__