2 package MooseX::AttributeHelpers::Collection::Hash;
6 $VERSION = eval $VERSION;
7 our $AUTHORITY = 'cpan:STEVAN';
9 use MooseX::AttributeHelpers::MethodProvider::Hash;
11 extends 'MooseX::AttributeHelpers::Collection';
13 has '+method_provider' => (
14 default => 'MooseX::AttributeHelpers::MethodProvider::Hash'
17 sub helper_type { 'HashRef' }
21 # register the alias ...
22 package # hide me from search.cpan.org
23 Moose::Meta::Attribute::Custom::Collection::Hash;
24 sub register_implementation { 'MooseX::AttributeHelpers::Collection::Hash' }
35 MooseX::AttributeHelpers::Collection::Hash
41 use MooseX::AttributeHelpers;
44 metaclass => 'Collection::Hash',
46 isa => 'HashRef[Str]',
47 default => sub { {} },
49 'set' => 'set_option',
50 'get' => 'get_option',
51 'empty' => 'has_options',
52 'count' => 'num_options',
53 'delete' => 'delete_option',
59 This module provides a Hash attribute which provides a number of
60 hash-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Hash>
69 =item B<method_provider>
71 =item B<has_method_provider>
79 All complex software has bugs lurking in it, and this module is no
80 exception. If you find a bug please either email me, or add the bug
85 Stevan Little E<lt>stevan@iinteractive.comE<gt>
87 =head1 COPYRIGHT AND LICENSE
89 Copyright 2007-2008 by Infinity Interactive, Inc.
91 L<http://www.iinteractive.com>
93 This library is free software; you can redistribute it and/or modify
94 it under the same terms as Perl itself.