| 1 | package HackaMol::Roles::NameRole; | ||
| 2 | 20 | $HackaMol::Roles::NameRole::VERSION = '0.051'; | |
| 3 | #ABSTRACT: provides name attribute | ||
| 4 | 20 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 20 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 20 | has 'name', is => 'rw', isa => 'Str', predicate => 'has_name' , clearer => 'clear_name'; | |
| 8 | |||
| 9 | 20 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 20 | 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 | ||