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