X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FAttributeHelpers.pm;h=18c0b9e8a97fd0c6075a7332daf8b6c15b55b001;hb=063fae5ea7080c5bf1d13ef7c6ac3d42351ae3fd;hp=ad9e9be2c127b77679033983a9e978cdb95b7f74;hpb=e295d072cf24071b83f12c60933e5620b84a0853;p=gitmo%2FMooseX-AttributeHelpers.git diff --git a/lib/MooseX/AttributeHelpers.pm b/lib/MooseX/AttributeHelpers.pm index ad9e9be..18c0b9e 100644 --- a/lib/MooseX/AttributeHelpers.pm +++ b/lib/MooseX/AttributeHelpers.pm @@ -1,15 +1,20 @@ package MooseX::AttributeHelpers; -our $VERSION = '0.01'; +our $VERSION = '0.09'; our $AUTHORITY = 'cpan:STEVAN'; use MooseX::AttributeHelpers::Meta::Method::Provided; use MooseX::AttributeHelpers::Counter; use MooseX::AttributeHelpers::Number; +use MooseX::AttributeHelpers::String; +use MooseX::AttributeHelpers::Bool; +use MooseX::AttributeHelpers::Collection::List; use MooseX::AttributeHelpers::Collection::Array; use MooseX::AttributeHelpers::Collection::Hash; +use MooseX::AttributeHelpers::Collection::ImmutableHash; +use MooseX::AttributeHelpers::Collection::Bag; 1; @@ -25,11 +30,12 @@ MooseX::AttributeHelpers - Extend your attribute interfaces package MyClass; use Moose; + use MooseX::AttributeHelpers; - has mapping => ( + has 'mapping' => ( metaclass => 'Collection::Hash', is => 'rw', - isa => 'HashRef', + isa => 'HashRef[Str]', default => sub { {} }, provides => { exists => 'exists_in_mapping', @@ -79,8 +85,27 @@ Common methods for hash references. Common methods for array references. +=item L + +Common list methods for array references. + =back +=head1 CAVEAT + +This is an early release of this module. Right now it is in great need +of documentation and tests in the test suite. However, we have used this +module to great success at C<$work> where it has been tested very thoroughly +and deployed into a major production site. + +I plan on getting better docs and tests in the next few releases, but until +then please refer to the few tests we do have and feel free email and/or +message me on irc.perl.org if you have any questions. + +=head1 TODO + +We need tests and docs badly. + =head1 BUGS All complex software has bugs lurking in it, and this module is no @@ -91,9 +116,25 @@ to cpan-RT. Stevan Little Estevan@iinteractive.comE +B + +Robert (rlb3) Boone + +Paul (frodwith) Driver + +Shawn (Sartak) Moore + +Chris (perigrin) Prather + +Robert (phaylon) Sedlacek + +Tom (dec) Lanyon + +Yuval Kogman + =head1 COPYRIGHT AND LICENSE -Copyright 2007 by Infinity Interactive, Inc. +Copyright 2007, 2008 by Infinity Interactive, Inc. L