X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FAttributeHelpers%2FTrait%2FCollection%2FHash.pm;h=29c61b49d7784cc51ebffdf8b54e301eeab51662;hb=3ebd23e61a6d6f3c4dbda39e3b9d90c0b34d52c5;hp=73070d358d94bde09a3c5d5b9e20627879fd8dc7;hpb=5646987e1fa9e759acbcbf2503884a8c6918d052;p=gitmo%2FMooseX-AttributeHelpers.git diff --git a/lib/MooseX/AttributeHelpers/Trait/Collection/Hash.pm b/lib/MooseX/AttributeHelpers/Trait/Collection/Hash.pm index 73070d3..29c61b4 100644 --- a/lib/MooseX/AttributeHelpers/Trait/Collection/Hash.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Collection/Hash.pm @@ -2,7 +2,8 @@ package MooseX::AttributeHelpers::Trait::Collection::Hash; use Moose::Role; -our $VERSION = '0.02'; +our $VERSION = '0.22'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use MooseX::AttributeHelpers::MethodProvider::Hash; @@ -20,14 +21,6 @@ sub helper_type { 'HashRef' } no Moose::Role; -# register the alias ... -package # hide me from search.cpan.org - Moose::Meta::Attribute::Custom::Trait::Collection::Hash; -sub register_implementation { - 'MooseX::AttributeHelpers::Trait::Collection::Hash' -} - - 1; __END__ @@ -43,7 +36,7 @@ MooseX::AttributeHelpers::Collection::Hash package Stuff; use Moose; use MooseX::AttributeHelpers; - + has 'options' => ( metaclass => 'Collection::Hash', is => 'ro', @@ -51,16 +44,16 @@ MooseX::AttributeHelpers::Collection::Hash default => sub { {} }, provides => { 'set' => 'set_option', - 'get' => 'get_option', + 'get' => 'get_option', 'empty' => 'has_options', 'count' => 'num_options', 'delete' => 'delete_option', } ); - + =head1 DESCRIPTION -This module provides an Hash attribute which provides a number of +This module provides a Hash attribute which provides a number of hash-like operations. See L for more details. @@ -80,7 +73,7 @@ for more details. =head1 BUGS -All complex software has bugs lurking in it, and this module is no +All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. @@ -90,7 +83,7 @@ Stevan Little Estevan@iinteractive.comE =head1 COPYRIGHT AND LICENSE -Copyright 2007-2008 by Infinity Interactive, Inc. +Copyright 2007-2009 by Infinity Interactive, Inc. L @@ -98,4 +91,3 @@ This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut -