File Coverage

blib/lib/Moose/Meta/Mixin/AttributeCore.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Moose::Meta::Mixin::AttributeCore;
2             our $VERSION = '2.2203';
3              
4 401     401   188555 use strict;
  401         954  
  401         11720  
5 401     401   1999 use warnings;
  401         829  
  401         11219  
6              
7 401     401   2135 use parent 'Class::MOP::Mixin::AttributeCore';
  401         843  
  401         2254  
8              
9             __PACKAGE__->meta->add_attribute(
10             'isa' => (
11             reader => '_isa_metadata',
12             Class::MOP::_definition_context(),
13             )
14             );
15              
16             __PACKAGE__->meta->add_attribute(
17             'does' => (
18             reader => '_does_metadata',
19             Class::MOP::_definition_context(),
20             )
21             );
22              
23             __PACKAGE__->meta->add_attribute(
24             'is' => (
25             reader => '_is_metadata',
26             Class::MOP::_definition_context(),
27             )
28             );
29              
30             __PACKAGE__->meta->add_attribute(
31             'required' => (
32             reader => 'is_required',
33             Class::MOP::_definition_context(),
34             )
35             );
36              
37             __PACKAGE__->meta->add_attribute(
38             'lazy' => (
39             reader => 'is_lazy',
40             Class::MOP::_definition_context(),
41             )
42             );
43              
44             __PACKAGE__->meta->add_attribute(
45             'lazy_build' => (
46             reader => 'is_lazy_build',
47             Class::MOP::_definition_context(),
48             )
49             );
50              
51             __PACKAGE__->meta->add_attribute(
52             'coerce' => (
53             reader => 'should_coerce',
54             Class::MOP::_definition_context(),
55             )
56             );
57              
58             __PACKAGE__->meta->add_attribute(
59             'weak_ref' => (
60             reader => 'is_weak_ref',
61             Class::MOP::_definition_context(),
62             )
63             );
64              
65             __PACKAGE__->meta->add_attribute(
66             'auto_deref' => (
67             reader => 'should_auto_deref',
68             Class::MOP::_definition_context(),
69             )
70             );
71              
72             __PACKAGE__->meta->add_attribute(
73             'type_constraint' => (
74             reader => 'type_constraint',
75             predicate => 'has_type_constraint',
76             Class::MOP::_definition_context(),
77             )
78             );
79              
80             __PACKAGE__->meta->add_attribute(
81             'trigger' => (
82             reader => 'trigger',
83             predicate => 'has_trigger',
84             Class::MOP::_definition_context(),
85             )
86             );
87              
88             __PACKAGE__->meta->add_attribute(
89             'handles' => (
90             reader => 'handles',
91             writer => '_set_handles',
92             predicate => 'has_handles',
93             Class::MOP::_definition_context(),
94             )
95             );
96              
97             __PACKAGE__->meta->add_attribute(
98             'documentation' => (
99             reader => 'documentation',
100             predicate => 'has_documentation',
101             Class::MOP::_definition_context(),
102             )
103             );
104              
105             1;
106              
107             # ABSTRACT: Core attributes shared by attribute metaclasses
108              
109             __END__
110              
111             =pod
112              
113             =encoding UTF-8
114              
115             =head1 NAME
116              
117             Moose::Meta::Mixin::AttributeCore - Core attributes shared by attribute metaclasses
118              
119             =head1 VERSION
120              
121             version 2.2203
122              
123             =head1 DESCRIPTION
124              
125             This class implements the core attributes (aka properties) shared by all Moose
126             attributes. See the L<Moose::Meta::Attribute> documentation for API details.
127              
128             =head1 BUGS
129              
130             See L<Moose/BUGS> for details on reporting bugs.
131              
132             =head1 AUTHORS
133              
134             =over 4
135              
136             =item *
137              
138             Stevan Little <stevan@cpan.org>
139              
140             =item *
141              
142             Dave Rolsky <autarch@urth.org>
143              
144             =item *
145              
146             Jesse Luehrs <doy@cpan.org>
147              
148             =item *
149              
150             Shawn M Moore <sartak@cpan.org>
151              
152             =item *
153              
154             יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
155              
156             =item *
157              
158             Karen Etheridge <ether@cpan.org>
159              
160             =item *
161              
162             Florian Ragwitz <rafl@debian.org>
163              
164             =item *
165              
166             Hans Dieter Pearcey <hdp@cpan.org>
167              
168             =item *
169              
170             Chris Prather <chris@prather.org>
171              
172             =item *
173              
174             Matt S Trout <mstrout@cpan.org>
175              
176             =back
177              
178             =head1 COPYRIGHT AND LICENSE
179              
180             This software is copyright (c) 2006 by Infinity Interactive, Inc.
181              
182             This is free software; you can redistribute it and/or modify it under
183             the same terms as the Perl 5 programming language system itself.
184              
185             =cut