MenuGrinder/Role/ItemMogrifier.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
item_mogrify_methods
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package WWW::MenuGrinder::Role::ItemMogrifier;
2 our $VERSION = '0.01_01';
3  
4  
5 # ABSTRACT: WWW::MenuGrinder role for plugins that modify menus item-by-item per request.
6  
7 use Moose::Role;
8  
9 with 'WWW::MenuGrinder::Role::Plugin';
10  
11 sub item_mogrify_methods {
12 return 'item_mogrify';
13 }
14  
15 after 'verify_plugin' => sub {
16 my ($self) = @_;
17 my $class = ref $self;
18  
19 for my $method ($self->item_mogrify_methods) {
20 if (! $self->can($method)) {
21 die "$class declared item_mogrify_method $method but doesn't provide it.";
22 }
23 }
24 };
25  
26 no Moose::Role;
27  
28 1;
29  
30 __END__
31 =head1 NAME
32  
33 WWW::MenuGrinder::Role::ItemMogrifier - WWW::MenuGrinder role for plugins that modify menus item-by-item per request.
34  
35 =head1 VERSION
36  
37 version 0.01_01
38  
39 =head1 AUTHOR
40  
41 Andrew Rodland <andrew@hbslabs.com>
42  
43 =head1 COPYRIGHT AND LICENSE
44  
45 This software is copyright (c) 2009 by HBS Labs, LLC..
46  
47 This is free software; you can redistribute it and/or modify it under
48 the same terms as perl itself.
49