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 = '1018';
5 11     11   77 use strict;
  11         27  
  11         356  
6 11     11   73 use warnings;
  11         46  
  11         371  
7 11     11   70 use Carp;
  11         25  
  11         1954  
8             require Moo::Role;
9              
10              
11             my %applied;
12              
13             sub apply_keywords {
14 10     10 1 40 my ( $class, $target ) = @_;
15              
16 10 50       57 return if exists $applied{$target};
17 10         27 $applied{$target} = undef;
18              
19 10         42 Moo::Role->apply_role_to_package($target,'DDG::Block::Blockable::Any');
20              
21             }
22              
23             1;
24              
25             __END__