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