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 = '1016';
5 11     11   40 use strict;
  11         11  
  11         249  
6 11     11   34 use warnings;
  11         14  
  11         198  
7 11     11   32 use Carp;
  11         13  
  11         989  
8             require Moo::Role;
9              
10              
11             my %applied;
12              
13             sub apply_keywords {
14 10     10 1 19 my ( $class, $target ) = @_;
15              
16 10 50       29 return if exists $applied{$target};
17 10         14 $applied{$target} = undef;
18              
19 10         23 Moo::Role->apply_role_to_package($target,'DDG::Block::Blockable::Any');
20              
21             }
22              
23             1;
24              
25             __END__