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