2 package MooseX::AttributeHelpers::Collection::ImmutableHash;
4 use MooseX::AttributeHelpers::Sugar;
7 our $AUTHORITY = 'cpan:STEVAN';
9 extends 'MooseX::AttributeHelpers::Collection';
11 define_attribute_helper (
12 helper_type => 'HashRef',
14 'MooseX::AttributeHelpers::MethodProvider::ImmutableHash',
15 shortcut => 'Collection::ImmutableHash',
19 no MooseX::AttributeHelpers::Sugar;
29 MooseX::AttributeHelpers::Collection::ImmutableHash
35 use MooseX::AttributeHelpers;
38 metaclass => 'Collection::ImmutableHash',
40 isa => 'HashRef[Str]',
41 default => sub { {} },
43 'get' => 'get_option',
44 'empty' => 'has_options',
45 'keys' => 'get_option_list',
51 This module provides a immutable HashRef attribute which provides a number of
54 =head1 PROVIDED METHODS
56 The methods for this metaclass are provided by
57 L<MooseX::AttributeHelpers::MethodProvider::ImmutableHash>.
61 All complex software has bugs lurking in it, and this module is no
62 exception. If you find a bug please either email me, or add the bug
67 Stevan Little E<lt>stevan@iinteractive.comE<gt>
69 =head1 COPYRIGHT AND LICENSE
71 Copyright 2007-2008 by Infinity Interactive, Inc.
73 L<http://www.iinteractive.com>
75 This library is free software; you can redistribute it and/or modify
76 it under the same terms as Perl itself.