File Coverage

blib/lib/MooseX/AttributeShortcuts/Trait/Method/HasDefinitionContext.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


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