2 package Moose::AttributeHelpers::Collection::Hash;
6 $VERSION = eval $VERSION;
7 our $AUTHORITY = 'cpan:STEVAN';
9 extends 'Moose::Meta::Attribute';
10 with 'Moose::AttributeHelpers::Trait::Collection::Hash';
14 # register the alias ...
15 package # hide me from search.cpan.org
16 Moose::Meta::Attribute::Custom::Collection::Hash;
17 sub register_implementation { 'Moose::AttributeHelpers::Collection::Hash' }
28 Moose::AttributeHelpers::Collection::Hash
34 use Moose::AttributeHelpers;
37 metaclass => 'Collection::Hash',
39 isa => 'HashRef[Str]',
40 default => sub { {} },
42 'set' => 'set_option',
43 'get' => 'get_option',
44 'empty' => 'has_options',
45 'count' => 'num_options',
46 'delete' => 'delete_option',
52 This module provides a Hash attribute which provides a number of
53 hash-like operations. See L<Moose::AttributeHelpers::MethodProvider::Hash>
62 =item B<method_provider>
64 =item B<has_method_provider>
72 All complex software has bugs lurking in it, and this module is no
73 exception. If you find a bug please either email me, or add the bug
78 Stevan Little E<lt>stevan@iinteractive.comE<gt>
80 =head1 COPYRIGHT AND LICENSE
82 Copyright 2007-2009 by Infinity Interactive, Inc.
84 L<http://www.iinteractive.com>
86 This library is free software; you can redistribute it and/or modify
87 it under the same terms as Perl itself.