From: john napiorkowski Date: Wed, 27 May 2009 17:21:00 +0000 (-0400) Subject: more pod and clarified license X-Git-Tag: 0.01~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=91623f94185ece8f2c6f2716dca9e6f7c1158963;p=gitmo%2FMooseX-Dependent.git more pod and clarified license --- diff --git a/lib/MooseX/Dependent.pm b/lib/MooseX/Dependent.pm index 0803815..a3f4c5d 100644 --- a/lib/MooseX/Dependent.pm +++ b/lib/MooseX/Dependent.pm @@ -132,6 +132,8 @@ John Napiorkowski, C<< >> =head1 COPYRIGHT & LICENSE +Copyright 2008-2009, John Napiorkowski C<< >> + This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff --git a/lib/MooseX/Dependent/Meta/TypeCoercion/Dependent.pm b/lib/MooseX/Dependent/Meta/TypeCoercion/Dependent.pm index 8444aff..65cedef 100644 --- a/lib/MooseX/Dependent/Meta/TypeCoercion/Dependent.pm +++ b/lib/MooseX/Dependent/Meta/TypeCoercion/Dependent.pm @@ -10,7 +10,8 @@ MooseX::Meta::TypeCoercion::Dependent - Coerce Dependent type constraints. =head1 DESCRIPTION -TBD +This class is not intended for public consumption. Please don't subclass it +or rely on it. Chances are high stuff here is going to change a lot. =head1 METHODS @@ -19,7 +20,10 @@ This class defines the following methods. =head add_type_coercions method modification to throw exception should we try to add a coercion on a -dependent type that's had it's constraining value filled +dependent type that is already defined by a constraining value. We do this +since defined dependent type constraints inherit their coercion from the parent +constraint. It makes no sense to even be using dependent types if you know the +constraining value beforehand! =cut @@ -33,7 +37,8 @@ around 'add_type_coercions' => sub { }; -## These two are here until I can merge change upstream to Moose +## These two are here until I can merge change upstream to Moose. These are two +## very minor changes we can probably just put into Moose without breaking stuff sub coerce { my $self = shift @_; my $coderef = $self->_compiled_type_coercion; diff --git a/lib/MooseX/Dependent/Meta/TypeConstraint/Dependent.pm b/lib/MooseX/Dependent/Meta/TypeConstraint/Dependent.pm index efb11a5..359685d 100644 --- a/lib/MooseX/Dependent/Meta/TypeConstraint/Dependent.pm +++ b/lib/MooseX/Dependent/Meta/TypeConstraint/Dependent.pm @@ -20,6 +20,11 @@ see L for examples and details of how to use dependent types. This class is a subclass of L which provides the gut functionality to enable dependent type constraints. +This class is not intended for public consumption. Please don't subclass it +or rely on it. Chances are high stuff here is going to change a lot. For +example, I will probably refactor this into several classes to get rid of all +the ugly conditionals. + =head1 ATTRIBUTES This class defines the following attributes.