File Coverage

blib/lib/HackaMol/Roles/NameRole.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             $HackaMol::Roles::NameRole::VERSION = '0.052';
2             #ABSTRACT: provides name attribute
3             use 5.008;
4 20     20   13432 use Moose::Role;
  20         62  
5 20     20   102  
  20         35  
  20         158  
6             has 'name', is => 'rw', isa => 'Str', predicate => 'has_name' , clearer => 'clear_name';
7              
8             no Moose::Role;
9 20     20   102933  
  20         41  
  20         108  
10             1;
11              
12              
13             =pod
14              
15             =head1 NAME
16              
17             HackaMol::Roles::NameRole - provides name attribute
18              
19             =head1 VERSION
20              
21             version 0.052
22              
23             =head1 DESCRIPTION
24              
25             simple role for the shared attribute 'name'. isa Str that is rw. useful for labeling,
26             bookkeeping...
27              
28             =head1 AUTHOR
29              
30             Demian Riccardi <demianriccardi@gmail.com>
31              
32             =head1 COPYRIGHT AND LICENSE
33              
34             This software is copyright (c) 2017 by Demian Riccardi.
35              
36             This is free software; you can redistribute it and/or modify it under
37             the same terms as the Perl 5 programming language system itself.
38              
39             =cut