line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MooseX::AttributeHelpers::Collection::Array; |
2
|
22
|
|
|
22
|
|
95
|
use Moose; |
|
22
|
|
|
|
|
34
|
|
|
22
|
|
|
|
|
306
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.25'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
extends 'Moose::Meta::Attribute'; |
7
|
|
|
|
|
|
|
with 'MooseX::AttributeHelpers::Trait::Collection::Array'; |
8
|
|
|
|
|
|
|
|
9
|
22
|
|
|
22
|
|
96980
|
no Moose; |
|
22
|
|
|
|
|
36
|
|
|
22
|
|
|
|
|
92
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# register the alias ... |
12
|
|
|
|
|
|
|
package # hide me from search.cpan.org |
13
|
|
|
|
|
|
|
Moose::Meta::Attribute::Custom::Collection::Array; |
14
|
3
|
|
|
3
|
|
6412
|
sub register_implementation { 'MooseX::AttributeHelpers::Collection::Array' } |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__END__ |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=pod |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=encoding UTF-8 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
MooseX::AttributeHelpers::Collection::Array |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 VERSION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
version 0.25 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
package Stuff; |
36
|
|
|
|
|
|
|
use Moose; |
37
|
|
|
|
|
|
|
use MooseX::AttributeHelpers; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
has 'options' => ( |
40
|
|
|
|
|
|
|
metaclass => 'Collection::Array', |
41
|
|
|
|
|
|
|
is => 'ro', |
42
|
|
|
|
|
|
|
isa => 'ArrayRef[Int]', |
43
|
|
|
|
|
|
|
default => sub { [] }, |
44
|
|
|
|
|
|
|
provides => { |
45
|
|
|
|
|
|
|
'push' => 'add_options', |
46
|
|
|
|
|
|
|
'pop' => 'remove_last_option', |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This module provides an Array attribute which provides a number of |
53
|
|
|
|
|
|
|
array operations. See L<MooseX::AttributeHelpers::MethodProvider::Array> |
54
|
|
|
|
|
|
|
for more details. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 METHODS |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=over 4 |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=item B<meta> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item B<method_provider> |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item B<has_method_provider> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=item B<helper_type> |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=back |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 SUPPORT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-AttributeHelpers> |
73
|
|
|
|
|
|
|
(or L<bug-MooseX-AttributeHelpers@rt.cpan.org|mailto:bug-MooseX-AttributeHelpers@rt.cpan.org>). |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
There is also a mailing list available for users of this distribution, at |
76
|
|
|
|
|
|
|
L<http://lists.perl.org/list/moose.html>. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
There is also an irc channel available for users of this distribution, at |
79
|
|
|
|
|
|
|
L<C<#moose> on C<irc.perl.org>|irc://irc.perl.org/#moose>. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 AUTHOR |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Stevan Little <stevan@iinteractive.com> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This software is copyright (c) 2007 by Stevan Little and Infinity Interactive, Inc. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
90
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=cut |