Flavour/Data.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Flavour.pm ↑ Summary
1 package Catalyst::Plugin::Flavour::Data;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use base qw/Class::Accessor::Fast/;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 use overload (
7 q{""} => sub { shift->flavour },
8 );
9  
10 __PACKAGE__->mk_accessors(qw/fn flavour year month day/);
11  
12 *yr = \&year;
13 *mo = \&month;
14 *da = \&day;
15  
16 =head1 NAME
17  
18 Catalyst::Plugin::Flavour::Data - Flavour data class
19  
20 =head1 SEE ALSO
21  
22 L<Catalyst::Plugin::Flavour>
23  
24 =head1 AUTHOR
25  
26 Daisuke Murase E<lt>typester@cpan.orgE<gt>
27  
28 =head1 COPYRIGHT
29  
30 This program is free software; you can redistribute
31 it and/or modify it under the same terms as Perl itself.
32  
33 The full text of the license can be found in the
34 LICENSE file included with this module.
35  
36 =cut
37  
38 1;
« Flavour.pm ↑ Summary