Fix some nits in Changes
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / ImmutableHash.pm
CommitLineData
9a976497 1
2package MooseX::AttributeHelpers::Collection::ImmutableHash;
3use Moose;
4
5our $VERSION = '0.01';
6our $AUTHORITY = 'cpan:STEVAN';
7
8use MooseX::AttributeHelpers::MethodProvider::ImmutableHash;
9
10extends 'MooseX::AttributeHelpers::Collection';
11
12has '+method_provider' => (
13 default => 'MooseX::AttributeHelpers::MethodProvider::ImmutableHash'
14);
15
16sub helper_type { 'HashRef' }
17
18no Moose;
19
20# register the alias ...
0f31cc28 21package # hide me from search.cpan.org
22 Moose::Meta::Attribute::Custom::Collection::ImmutableHash;
9a976497 23sub register_implementation { 'MooseX::AttributeHelpers::Collection::ImmutableHash' }
24
25
261;
27
28__END__
29
30=pod
31
32=head1 NAME
33
34MooseX::AttributeHelpers::Collection::ImmutableHash
35
36=head1 SYNOPSIS
37
38 package Stuff;
39 use Moose;
40 use MooseX::AttributeHelpers;
41
42 has 'options' => (
43 metaclass => 'Collection::ImmutableHash',
44 is => 'ro',
45 isa => 'HashRef[Str]',
46 default => sub { {} },
47 provides => {
48 'get' => 'get_option',
49 'empty' => 'has_options',
50 'keys' => 'get_option_list',
51 }
52 );
53
54=head1 DESCRIPTION
55
56This module provides a immutable HashRef attribute which provides a number of
57hash-line operations. See L<MooseX::AttributeHelpers::MethodProvider::ImmutableHash>
58for more details.
59
60=head1 METHODS
61
62=over 4
63
64=item B<meta>
65
66=item B<method_provider>
67
68=item B<has_method_provider>
69
70=item B<helper_type>
71
72=back
73
74=head1 BUGS
75
76All complex software has bugs lurking in it, and this module is no
77exception. If you find a bug please either email me, or add the bug
78to cpan-RT.
79
80=head1 AUTHOR
81
82Stevan Little E<lt>stevan@iinteractive.comE<gt>
83
84=head1 COPYRIGHT AND LICENSE
85
99c62fb8 86Copyright 2007-2008 by Infinity Interactive, Inc.
9a976497 87
88L<http://www.iinteractive.com>
89
90This library is free software; you can redistribute it and/or modify
91it under the same terms as Perl itself.
92
93=cut