2 package Moose::AttributeHelpers::Trait::Collection::Hash;
6 $VERSION = eval $VERSION;
7 our $AUTHORITY = 'cpan:STEVAN';
9 use Moose::AttributeHelpers::MethodProvider::Hash;
11 with 'Moose::AttributeHelpers::Trait::Collection';
13 has 'method_provider' => (
16 predicate => 'has_method_provider',
17 default => 'Moose::AttributeHelpers::MethodProvider::Hash'
20 sub helper_type { 'HashRef' }
24 # register the alias ...
25 package # hide me from search.cpan.org
26 Moose::Meta::Attribute::Custom::Trait::Collection::Hash;
27 sub register_implementation {
28 'Moose::AttributeHelpers::Trait::Collection::Hash'
40 Moose::AttributeHelpers::Collection::Hash
46 use Moose::AttributeHelpers;
49 metaclass => 'Collection::Hash',
51 isa => 'HashRef[Str]',
52 default => sub { {} },
54 'set' => 'set_option',
55 'get' => 'get_option',
56 'empty' => 'has_options',
57 'count' => 'num_options',
58 'delete' => 'delete_option',
64 This module provides a Hash attribute which provides a number of
65 hash-like operations. See L<Moose::AttributeHelpers::MethodProvider::Hash>
74 =item B<method_provider>
76 =item B<has_method_provider>
84 All complex software has bugs lurking in it, and this module is no
85 exception. If you find a bug please either email me, or add the bug
90 Stevan Little E<lt>stevan@iinteractive.comE<gt>
92 =head1 COPYRIGHT AND LICENSE
94 Copyright 2007-2009 by Infinity Interactive, Inc.
96 L<http://www.iinteractive.com>
98 This library is free software; you can redistribute it and/or modify
99 it under the same terms as Perl itself.