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 Moose::Meta::Attribute::Custom::Collection::Hash;
22 sub register_implementation { 'MooseX::AttributeHelpers::Collection::Hash' }
33 MooseX::AttributeHelpers::Collection::Hash
39 use MooseX::AttributeHelpers;
42 metaclass => 'Collection::Hash',
44 isa => 'HashRef[Str]',
45 default => sub { {} },
47 'set' => 'set_option',
48 'get' => 'get_option',
49 'empty' => 'has_options',
50 'count' => 'num_options',
51 'delete' => 'delete_option',
57 This module provides an Hash attribute which provides a number of
58 hash-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Hash>
67 =item B<method_provider>
69 =item B<has_method_provider>
77 All complex software has bugs lurking in it, and this module is no
78 exception. If you find a bug please either email me, or add the bug
83 Stevan Little E<lt>stevan@iinteractive.comE<gt>
85 =head1 COPYRIGHT AND LICENSE
87 Copyright 2007 by Infinity Interactive, Inc.
89 L<http://www.iinteractive.com>
91 This library is free software; you can redistribute it and/or modify
92 it under the same terms as Perl itself.