2 package MooseX::AttributeHelpers::Collection::Hash;
6 our $AUTHORITY = 'cpan:STEVAN';
8 use MooseX::AttributeHelpers::MethodProvider::Hash;
10 extends 'MooseX::AttributeHelpers::Collection';
12 has '+method_provider' => (
13 default => 'MooseX::AttributeHelpers::MethodProvider::Hash'
16 sub helper_type { 'HashRef' }
20 # register the alias ...
21 package # hide me from search.cpan.org
22 Moose::Meta::Attribute::Custom::Collection::Hash;
23 sub register_implementation { 'MooseX::AttributeHelpers::Collection::Hash' }
34 MooseX::AttributeHelpers::Collection::Hash
40 use MooseX::AttributeHelpers;
43 metaclass => 'Collection::Hash',
45 isa => 'HashRef[Str]',
46 default => sub { {} },
48 'set' => 'set_option',
49 'get' => 'get_option',
50 'empty' => 'has_options',
51 'count' => 'num_options',
52 'delete' => 'delete_option',
58 This module provides an Hash attribute which provides a number of
59 hash-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Hash>
68 =item B<method_provider>
70 =item B<has_method_provider>
78 All complex software has bugs lurking in it, and this module is no
79 exception. If you find a bug please either email me, or add the bug
84 Stevan Little E<lt>stevan@iinteractive.comE<gt>
86 =head1 COPYRIGHT AND LICENSE
88 Copyright 2007-2008 by Infinity Interactive, Inc.
90 L<http://www.iinteractive.com>
92 This library is free software; you can redistribute it and/or modify
93 it under the same terms as Perl itself.