1 package MooseX::AlwaysCoerce;
8 MooseX::AlwaysCoerce - Automatically enable coercions for Moose attributes
16 our $VERSION = '0.01';
23 use MooseX::AlwaysCoerce;
24 use MyTypeLib 'SomeType';
26 has foo => (is => 'rw', isa => SomeType); # will be coerced
30 Rafael Kitover, C<< <rkitover at cpan.org> >>
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.
40 You can find more information at:
44 =item * RT: CPAN's request tracker
46 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-AlwaysCoerce>
48 =item * AnnoCPAN: Annotated CPAN documentation
50 L<http://annocpan.org/dist/MooseX-AlwaysCoerce>
54 L<http://cpanratings.perl.org/d/MooseX-AlwaysCoerce>
58 L<http://search.cpan.org/dist/MooseX-AlwaysCoerce/>
62 =head1 ACKNOWLEDGEMENTS
64 My own stupidity, for inspiring me to write this module.
66 =head1 COPYRIGHT & LICENSE
68 Copyright (c) 2009 Rafael Kitover
70 This program is free software; you can redistribute it and/or modify it
71 under the same terms as Perl itself.
75 1; # End of MooseX::AlwaysCoerce