Docs tentatively finished.
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / ImmutableHash.pm
CommitLineData
9a976497 1package MooseX::AttributeHelpers::Collection::ImmutableHash;
2use Moose;
786dbc3d 3use MooseX::AttributeHelpers::MethodProvider::Collection::ImmutableHash;
9a976497 4
5our $VERSION = '0.01';
6our $AUTHORITY = 'cpan:STEVAN';
7
9a976497 8extends 'MooseX::AttributeHelpers::Collection';
9
786dbc3d 10__PACKAGE__->sugar(
11 method_provider => 'Collection::ImmutableHash',
e993b282 12 shortcut => 'Collection::ImmutableHash',
9a976497 13);
14
9a976497 15no Moose;
9a976497 16
171;
18
19__END__
20
21=pod
22
23=head1 NAME
24
25MooseX::AttributeHelpers::Collection::ImmutableHash
26
27=head1 SYNOPSIS
28
29 package Stuff;
30 use Moose;
31 use MooseX::AttributeHelpers;
32
33 has 'options' => (
34 metaclass => 'Collection::ImmutableHash',
35 is => 'ro',
36 isa => 'HashRef[Str]',
37 default => sub { {} },
38 provides => {
39 'get' => 'get_option',
40 'empty' => 'has_options',
41 'keys' => 'get_option_list',
42 }
43 );
44
45=head1 DESCRIPTION
46
47This module provides a immutable HashRef attribute which provides a number of
e993b282 48hash-like operations.
9a976497 49
e993b282 50=head1 PROVIDED METHODS
9a976497 51
e993b282 52The methods for this metaclass are provided by
1d458eb8 53L<MooseX::AttributeHelpers::MethodProvider::Collection::ImmutableHash>.
9a976497 54
55=head1 BUGS
56
57All complex software has bugs lurking in it, and this module is no
58exception. If you find a bug please either email me, or add the bug
59to cpan-RT.
60
61=head1 AUTHOR
62
63Stevan Little E<lt>stevan@iinteractive.comE<gt>
64
65=head1 COPYRIGHT AND LICENSE
66
99c62fb8 67Copyright 2007-2008 by Infinity Interactive, Inc.
9a976497 68
69L<http://www.iinteractive.com>
70
71This library is free software; you can redistribute it and/or modify
72it under the same terms as Perl itself.
73
e993b282 74=cut