2 package MooseX::AttributeHelpers::Trait::Collection::Hash;
6 $VERSION = eval $VERSION;
7 our $AUTHORITY = 'cpan:STEVAN';
9 use MooseX::AttributeHelpers::MethodProvider::Hash;
11 with 'MooseX::AttributeHelpers::Trait::Collection';
13 has 'method_provider' => (
16 predicate => 'has_method_provider',
17 default => 'MooseX::AttributeHelpers::MethodProvider::Hash'
20 sub helper_type { 'HashRef' }
32 MooseX::AttributeHelpers::Collection::Hash
38 use MooseX::AttributeHelpers;
41 metaclass => 'Collection::Hash',
43 isa => 'HashRef[Str]',
44 default => sub { {} },
46 'set' => 'set_option',
47 'get' => 'get_option',
48 'empty' => 'has_options',
49 'count' => 'num_options',
50 'delete' => 'delete_option',
56 This module provides a Hash attribute which provides a number of
57 hash-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Hash>
66 =item B<method_provider>
68 =item B<has_method_provider>
76 All complex software has bugs lurking in it, and this module is no
77 exception. If you find a bug please either email me, or add the bug
82 Stevan Little E<lt>stevan@iinteractive.comE<gt>
84 =head1 COPYRIGHT AND LICENSE
86 Copyright 2007-2009 by Infinity Interactive, Inc.
88 L<http://www.iinteractive.com>
90 This library is free software; you can redistribute it and/or modify
91 it under the same terms as Perl itself.