2 package MooseX::AttributeHelpers::Collection::ImmutableHash;
6 $VERSION = eval $VERSION;
7 our $AUTHORITY = 'cpan:STEVAN';
9 use MooseX::AttributeHelpers::MethodProvider::ImmutableHash;
11 extends 'MooseX::AttributeHelpers::Collection';
13 has '+method_provider' => (
14 default => 'MooseX::AttributeHelpers::MethodProvider::ImmutableHash'
17 sub helper_type { 'HashRef' }
21 # register the alias ...
22 package # hide me from search.cpan.org
23 Moose::Meta::Attribute::Custom::Collection::ImmutableHash;
24 sub register_implementation { 'MooseX::AttributeHelpers::Collection::ImmutableHash' }
35 MooseX::AttributeHelpers::Collection::ImmutableHash
41 use MooseX::AttributeHelpers;
44 metaclass => 'Collection::ImmutableHash',
46 isa => 'HashRef[Str]',
47 default => sub { {} },
49 'get' => 'get_option',
50 'empty' => 'has_options',
51 'keys' => 'get_option_list',
57 This module provides a immutable HashRef attribute which provides a number of
58 hash-line operations. See L<MooseX::AttributeHelpers::MethodProvider::ImmutableHash>
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-2008 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.