Tomas Doran > MooseX-StrictAttributes-0.0001 > MooseX::StrictAttributes

Download:
MooseX-StrictAttributes-0.0001.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.0001   Source  

NAME ^

MooseX::StrictAttributes - A collection of Attribute and Class traits to turn on various 'strict' features of attributes.

SYNOPSIS ^

    use Moose;
    # Apply all traits to all attributes in this class.
    use MooseX::StrictAttributeBuilders;

    # Or apply to individual attributes
    use MooseX::StrictAttributeBuilders ();
    has foo => ( is => 'ro', traits => [qw/ StrictAttributeBuilders StrictAttributeIsas /] );

DESCRIPTION ^

When applied, ensures that any attributes you declare with a builder method actually have an existant builder method in their class, and ensures that when you use an isa type constraint which mentions a class name, that class name corresponds to a loaded class

SEE ALSO ^

MooseX::StrictAttributes::Meta::Attribute::Trait::Isa
MooseX::StrictAttributes::Meta::Attribute::Trait::Builder

BUGS AND SOURCE CODE ^

This software probably contains bugs, and there are much more elegant ways of inheriting default attribute traits than those implemented in this code.

Patches welcome.

AUTHOR ^

Tomas Doran <bobtfish@bobtfish.net> (t0m on #moose)

COPYRIGHT AND LICENSE ^

Copyright 2008 Tomas Doran.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.