Commit | Line | Data |
7a603ffa |
1 | package MooseX::AlwaysCoerce; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | =head1 NAME |
7 | |
8 | MooseX::AlwaysCoerce - Automatically enable coercions for Moose attributes |
9 | |
10 | =head1 VERSION |
11 | |
12 | Version 0.01 |
13 | |
14 | =cut |
15 | |
16 | our $VERSION = '0.01'; |
17 | |
18 | =head1 SYNOPSIS |
19 | |
20 | package MyClass; |
21 | |
22 | use Moose; |
23 | use MooseX::AlwaysCoerce; |
24 | use MyTypeLib 'SomeType'; |
25 | |
26 | has foo => (is => 'rw', isa => SomeType); # will be coerced |
27 | |
28 | =head1 AUTHOR |
29 | |
30 | Rafael Kitover, C<< <rkitover at cpan.org> >> |
31 | |
32 | =head1 BUGS |
33 | |
34 | Please report any bugs or feature requests to C<bug-moosex-alwayscoerce at rt.cpan.org>, or through |
35 | the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-AlwaysCoerce>. I will be notified, and then you'll |
36 | automatically be notified of progress on your bug as I make changes. |
37 | |
38 | =head1 SUPPORT |
39 | |
40 | You can find more information at: |
41 | |
42 | =over 4 |
43 | |
44 | =item * RT: CPAN's request tracker |
45 | |
46 | L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-AlwaysCoerce> |
47 | |
48 | =item * AnnoCPAN: Annotated CPAN documentation |
49 | |
50 | L<http://annocpan.org/dist/MooseX-AlwaysCoerce> |
51 | |
52 | =item * CPAN Ratings |
53 | |
54 | L<http://cpanratings.perl.org/d/MooseX-AlwaysCoerce> |
55 | |
56 | =item * Search CPAN |
57 | |
58 | L<http://search.cpan.org/dist/MooseX-AlwaysCoerce/> |
59 | |
60 | =back |
61 | |
62 | =head1 ACKNOWLEDGEMENTS |
63 | |
64 | My own stupidity, for inspiring me to write this module. |
65 | |
66 | =head1 COPYRIGHT & LICENSE |
67 | |
68 | Copyright (c) 2009 Rafael Kitover |
69 | |
70 | This program is free software; you can redistribute it and/or modify it |
71 | under the same terms as Perl itself. |
72 | |
73 | =cut |
74 | |
75 | 1; # End of MooseX::AlwaysCoerce |