line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MooseX::MultiInitArg::Attribute; |
2
|
2
|
|
|
2
|
|
1278
|
use Moose; |
|
2
|
|
|
|
|
530208
|
|
|
2
|
|
|
|
|
14
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
extends q(Moose::Meta::Attribute); |
5
|
|
|
|
|
|
|
with q(MooseX::MultiInitArg::Trait); |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
14381
|
no Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
10
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package # Move along, PAUSE... |
10
|
|
|
|
|
|
|
Moose::Meta::Attribute::Custom::MultiInitArg; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
857
|
sub register_implementation { q(MooseX::MultiInitArg::Attribute) } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__END__ |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
MooseX::MultiInitArg::Attribute - A custom attribute metaclass to add multiple init arguments to your attributes. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 DESCRIPTION |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
This is a custom attribute metaclass which you can add to an attribute so that |
27
|
|
|
|
|
|
|
you can specify a list of aliases for your attribute to be recognized as |
28
|
|
|
|
|
|
|
constructor arguments. Use L<MooseX::MultiInitArg::Trait> for a way to use |
29
|
|
|
|
|
|
|
this with other attribute modifiers. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 AUTHOR |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Paul Driver, C<< <frodwith at cpan.org> >> |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Copyright 2007-2008 by Paul Driver. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
40
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|