line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of MooseX-AttributeShortcuts |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is Copyright (c) 2017, 2015, 2014, 2013, 2012, 2011 by Chris Weyl. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This is free software, licensed under: |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# The GNU Lesser General Public License, Version 2.1, February 1999 |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
package MooseX::AttributeShortcuts::Trait::Role::Method::Builder; |
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:RSRCHBOY'; |
12
|
|
|
|
|
|
|
$MooseX::AttributeShortcuts::Trait::Role::Method::Builder::VERSION = '0.036'; |
13
|
|
|
|
|
|
|
# ABSTRACT: Trait for inline builder method metaclasses |
14
|
|
|
|
|
|
|
|
15
|
27
|
|
|
27
|
|
14522
|
use Moose::Role; |
|
27
|
|
|
|
|
71
|
|
|
27
|
|
|
|
|
249
|
|
16
|
27
|
|
|
27
|
|
139570
|
use namespace::autoclean; |
|
27
|
|
|
|
|
70
|
|
|
27
|
|
|
|
|
264
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
with 'MooseX::AttributeShortcuts::Trait::Method::HasDefinitionContext'; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
has associated_attribute => ( |
22
|
|
|
|
|
|
|
is => 'ro', |
23
|
|
|
|
|
|
|
isa => 'Moose::Meta::Role::Attribute', |
24
|
|
|
|
|
|
|
required => 1, |
25
|
|
|
|
|
|
|
weak_ref => 1, |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
!!42; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=encoding UTF-8 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=for :stopwords Chris Weyl Alders David Etheridge Graham Karen Knop Olaf Steinbrunner |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 NAME |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
MooseX::AttributeShortcuts::Trait::Role::Method::Builder - Trait for inline builder method metaclasses |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 VERSION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This document describes version 0.036 of MooseX::AttributeShortcuts::Trait::Role::Method::Builder - released October 31, 2017 as part of MooseX-AttributeShortcuts. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This is a L<role method metaclass|Moose::Meta::Role::Method> trait that allows |
49
|
|
|
|
|
|
|
inline builder methods to be associated with their attribute, and to take on a |
50
|
|
|
|
|
|
|
definition context. This additional information will allow inline builders to |
51
|
|
|
|
|
|
|
be more readily identified and associated with their owning attributes. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 associated_attribute |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Read only, required, weak, must be a L<Moose::Meta::Attribute> or descendant. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Contains the attribute this builder is associated with. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SEE ALSO |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Please see those modules/websites for more information related to this module. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=over 4 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
L<MooseX::AttributeShortcuts|MooseX::AttributeShortcuts> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=back |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 BUGS |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website |
76
|
|
|
|
|
|
|
L<https://github.com/RsrchBoy/moosex-attributeshortcuts/issues> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
79
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
80
|
|
|
|
|
|
|
feature. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 AUTHOR |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Chris Weyl <cweyl@alumni.drew.edu> |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
This software is Copyright (c) 2017, 2015, 2014, 2013, 2012, 2011 by Chris Weyl. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
This is free software, licensed under: |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
The GNU Lesser General Public License, Version 2.1, February 1999 |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=cut |