X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FTypeCoercion.pm;h=6ecafba3acf51b145b320b8e479cb781de6feace;hb=HEAD;hp=ec2eedb0e3155ba298d457b5a2aeed2abab20ceb;hpb=5ef36adde3d619733607b9f5f1136524a00848df;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/TypeCoercion.pm b/lib/Moose/Meta/TypeCoercion.pm index ec2eedb..6ecafba 100644 --- a/lib/Moose/Meta/TypeCoercion.pm +++ b/lib/Moose/Meta/TypeCoercion.pm @@ -8,25 +8,24 @@ use metaclass; use Moose::Meta::Attribute; use Moose::Util::TypeConstraints (); -our $VERSION = '0.85'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; - __PACKAGE__->meta->add_attribute('type_coercion_map' => ( reader => 'type_coercion_map', - default => sub { [] } + default => sub { [] }, + Class::MOP::_definition_context(), )); __PACKAGE__->meta->add_attribute( Moose::Meta::Attribute->new('type_constraint' => ( reader => 'type_constraint', - weak_ref => 1 + weak_ref => 1, + Class::MOP::_definition_context(), )) ); # private accessor __PACKAGE__->meta->add_attribute('compiled_type_coercion' => ( - accessor => '_compiled_type_coercion' + accessor => '_compiled_type_coercion', + Class::MOP::_definition_context(), )); sub new { @@ -99,14 +98,12 @@ sub coerce { $_[0]->_compiled_type_coercion->($_[1]) } 1; +# ABSTRACT: The Moose Type Coercion metaclass + __END__ =pod -=head1 NAME - -Moose::Meta::TypeCoercion - The Moose Type Coercion metaclass - =head1 DESCRIPTION A type coercion object is basically a mapping of one or more type @@ -174,21 +171,6 @@ This will return a L instance for this class. =head1 BUGS -All complex software has bugs lurking in it, and this module is no -exception. If you find a bug please either email me, or add the bug -to cpan-RT. - -=head1 AUTHOR - -Stevan Little Estevan@iinteractive.comE - -=head1 COPYRIGHT AND LICENSE - -Copyright 2006-2009 by Infinity Interactive, Inc. - -L - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. +See L for details on reporting bugs. =cut