2 package MooseX::AttributeHelpers::Trait::Collection::Hash;
6 our $AUTHORITY = 'cpan:STEVAN';
8 use MooseX::AttributeHelpers::MethodProvider::Hash;
10 with 'MooseX::AttributeHelpers::Trait::Collection';
12 has 'method_provider' => (
15 predicate => 'has_method_provider',
16 default => 'MooseX::AttributeHelpers::MethodProvider::Hash'
19 sub helper_type { 'HashRef' }
23 # register the alias ...
24 package # hide me from search.cpan.org
25 Moose::Meta::Attribute::Custom::Trait::Collection::Hash;
26 sub register_implementation {
27 'MooseX::AttributeHelpers::Trait::Collection::Hash'
39 MooseX::AttributeHelpers::Collection::Hash
45 use MooseX::AttributeHelpers;
48 metaclass => 'Collection::Hash',
50 isa => 'HashRef[Str]',
51 default => sub { {} },
53 'set' => 'set_option',
54 'get' => 'get_option',
55 'empty' => 'has_options',
56 'count' => 'num_options',
57 'delete' => 'delete_option',
63 This module provides an Hash attribute which provides a number of
64 hash-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Hash>
73 =item B<method_provider>
75 =item B<has_method_provider>
83 All complex software has bugs lurking in it, and this module is no
84 exception. If you find a bug please either email me, or add the bug
89 Stevan Little E<lt>stevan@iinteractive.comE<gt>
91 =head1 COPYRIGHT AND LICENSE
93 Copyright 2007-2008 by Infinity Interactive, Inc.
95 L<http://www.iinteractive.com>
97 This library is free software; you can redistribute it and/or modify
98 it under the same terms as Perl itself.