This class defines the following methods.
-=head
+=head add_type_coercions
-=cut
+method modification to throw exception should we try to add a coercion on a
+dependent type that's had it's constraining value filled
-sub coerce {
- my $self = shift @_;
- my $coderef = $self->_compiled_type_coercion;
- return $coderef->(@_);
-}
+=cut
around 'add_type_coercions' => sub {
my ($add_type_coercions, $self, @args) = @_;
}
};
+
+## These two are here until I can merge change upstream to Moose
+sub coerce {
+ my $self = shift @_;
+ my $coderef = $self->_compiled_type_coercion;
+ return $coderef->(@_);
+}
+
sub compile_type_coercion {
my $self = shift;
my @coercion_map = @{$self->type_coercion_map};
});
}
-
-
-
=head1 SEE ALSO
The following modules or resources may be of interest.