use Scalar::Util 'blessed';
-our $VERSION = '1.11';
-$VERSION = eval $VERSION;
-our $AUTHORITY = 'cpan:STEVAN';
-
use base 'Moose::Meta::TypeCoercion';
sub compile_type_coercion {
my $type_constraint = $self->type_constraint;
(blessed $type_constraint && $type_constraint->isa('Moose::Meta::TypeConstraint::Union'))
- || Moose->throw_error("You can only a Moose::Meta::TypeCoercion::Union for a " .
+ || Moose->throw_error("You can only create a Moose::Meta::TypeCoercion::Union for a " .
"Moose::Meta::TypeConstraint::Union, not a $type_constraint");
$self->_compiled_type_coercion(
1;
+# ABSTRACT: The Moose Type Coercion metaclass for Unions
+
__END__
=pod
-=head1 NAME
-
-Moose::Meta::TypeCoercion::Union - The Moose Type Coercion metaclass for Unions
-
=head1 DESCRIPTION
This is a subclass of L<Moose::Meta::TypeCoercion> that is used for
See L<Moose/BUGS> for details on reporting bugs.
-=head1 AUTHOR
-
-Stevan Little E<lt>stevan@iinteractive.comE<gt>
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright 2006-2010 by Infinity Interactive, Inc.
-
-L<http://www.iinteractive.com>
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
=cut