AttributeShortcuts/Trait/Method/HasDefinitionContext.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« AttributeShortcuts/Trait/Method/Builder.pm ↑ Summary AttributeShortcuts/Trait/Role/Method/Builder.pm »
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 34 our $AUTHORITY = 'cpan:RSRCHBOY';
12 34 $MooseX::AttributeShortcuts::Trait::Method::HasDefinitionContext::VERSION = '0.037';
13 # ABSTRACT: Trait for method metaclasses that have definition contexts
14  
15 34 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 34 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18  
19 34 has definition_context => (
20 is => 'ro',
21 isa => 'HashRef',
22 required => 1,
23 );
24  
25 34 !!42;
26  
27 __END__
« AttributeShortcuts/Trait/Method/Builder.pm ↑ Summary AttributeShortcuts/Trait/Role/Method/Builder.pm »