2 package MooseX::AttributeHelpers::Collection::ImmutableHash;
6 our $AUTHORITY = 'cpan:STEVAN';
8 use MooseX::AttributeHelpers::MethodProvider::ImmutableHash;
10 extends 'MooseX::AttributeHelpers::Collection';
12 has '+method_provider' => (
13 default => 'MooseX::AttributeHelpers::MethodProvider::ImmutableHash'
16 sub helper_type { 'HashRef' }
20 # register the alias ...
21 package # hide me from search.cpan.org
22 Moose::Meta::Attribute::Custom::Collection::ImmutableHash;
23 sub register_implementation { 'MooseX::AttributeHelpers::Collection::ImmutableHash' }
34 MooseX::AttributeHelpers::Collection::ImmutableHash
40 use MooseX::AttributeHelpers;
43 metaclass => 'Collection::ImmutableHash',
45 isa => 'HashRef[Str]',
46 default => sub { {} },
48 'get' => 'get_option',
49 'empty' => 'has_options',
50 'keys' => 'get_option_list',
56 This module provides a immutable HashRef attribute which provides a number of
57 hash-line operations. See L<MooseX::AttributeHelpers::MethodProvider::ImmutableHash>
66 =item B<method_provider>
68 =item B<has_method_provider>
76 All complex software has bugs lurking in it, and this module is no
77 exception. If you find a bug please either email me, or add the bug
82 Stevan Little E<lt>stevan@iinteractive.comE<gt>
84 =head1 COPYRIGHT AND LICENSE
86 Copyright 2007-2008 by Infinity Interactive, Inc.
88 L<http://www.iinteractive.com>
90 This library is free software; you can redistribute it and/or modify
91 it under the same terms as Perl itself.