2 package MooseX::AttributeHelpers::Collection::ImmutableHash;
6 our $AUTHORITY = 'cpan:STEVAN';
8 extends 'Moose::Meta::Attribute';
9 with 'MooseX::AttributeHelpers::Trait::Collection::ImmutableHash';
13 # register the alias ...
14 package # hide me from search.cpan.org
15 Moose::Meta::Attribute::Custom::Collection::ImmutableHash;
16 sub register_implementation { 'MooseX::AttributeHelpers::Collection::ImmutableHash' }
27 MooseX::AttributeHelpers::Collection::ImmutableHash
33 use MooseX::AttributeHelpers;
36 metaclass => 'Collection::ImmutableHash',
38 isa => 'HashRef[Str]',
39 default => sub { {} },
41 'get' => 'get_option',
42 'empty' => 'has_options',
43 'keys' => 'get_option_list',
49 This module provides a immutable HashRef attribute which provides a number of
50 hash-line operations. See L<MooseX::AttributeHelpers::MethodProvider::ImmutableHash>
59 =item B<method_provider>
61 =item B<has_method_provider>
69 All complex software has bugs lurking in it, and this module is no
70 exception. If you find a bug please either email me, or add the bug
75 Stevan Little E<lt>stevan@iinteractive.comE<gt>
77 =head1 COPYRIGHT AND LICENSE
79 Copyright 2007-2008 by Infinity Interactive, Inc.
81 L<http://www.iinteractive.com>
83 This library is free software; you can redistribute it and/or modify
84 it under the same terms as Perl itself.