| 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; | ||