2 package MooseX::AttributeHelpers::Collection::Hash;
4 use MooseX::AttributeHelpers::Sugar;
6 extends 'MooseX::AttributeHelpers::Collection';
9 our $AUTHORITY = 'cpan:STEVAN';
11 define_attribute_helper (
12 helper_type => 'HashRef',
13 method_provider => 'MooseX::AttributeHelpers::MethodProvider::Hash',
14 shortcut => 'Collection::Hash',
18 no MooseX::AttributeHelpers::Sugar;
28 MooseX::AttributeHelpers::Collection::Hash
34 use MooseX::AttributeHelpers;
37 metaclass => 'Collection::Hash',
39 isa => 'HashRef[Str]',
40 default => sub { {} },
42 'set' => 'set_option',
43 'get' => 'get_option',
44 'empty' => 'has_options',
45 'count' => 'num_options',
46 'delete' => 'delete_option',
52 This module provides an Hash attribute which provides a number of
53 hash-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Hash>
56 =head1 PROVIDED METHODS
58 The methods for this metaclass are provided by
59 L<MooseX::AttributeHelpers::MethodProvider::Hash>.
63 All complex software has bugs lurking in it, and this module is no
64 exception. If you find a bug please either email me, or add the bug
69 Stevan Little E<lt>stevan@iinteractive.comE<gt>
71 =head1 COPYRIGHT AND LICENSE
73 Copyright 2007-2008 by Infinity Interactive, Inc.
75 L<http://www.iinteractive.com>
77 This library is free software; you can redistribute it and/or modify
78 it under the same terms as Perl itself.