Looks good, however I think MooseX::Depedency is too general a name, how about MooseX::Types::Dependent::Types?

- Stevan



On Dec 26, 2010, at 7:58 AM, Moritz Onken wrote:

Hi,

I want to publish one of my modules on cpan and wanted to get your blessings first.
What it does from the pod:

Moose type constraints restrict based on the value of the attribute. Using this module, attributes can have more complex constraints, which involve values of other attributes. It comes with a few constraints and can easily be extended.

package Address;
use MooseX::Dependency;

has street => ( is => 'rw', dependency => All['city', 'zip'] );
has city => ( is => 'ro' );
has zip => ( is => 'ro', clearer => 'clear_zip' );

Find the complete pod and source at 
https://github.com/monken/p5-moosex-dependency

Cheers,

mo

Reply via email to