| 1 | package IPC::PrettyPipe::Arg::Format; | ||
| 2 | |||
| 3 | # ABSTRACT: Encapsulate argument formatting attributes | ||
| 4 | |||
| 5 | 25 | ▶ | use Types::Standard qw[ Str ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 25 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 25 | our $VERSION = '0.13'; | |
| 10 | |||
| 11 | 25 | with 'IPC::PrettyPipe::Format'; | |
| 12 | |||
| 13 | |||
| 14 | 25 | shadowable_attrs( qw[ pfx sep ] ); | |
| 15 | |||
| 16 | 25 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | 25 | has pfx => ( | |
| 39 | is => 'rw', | ||
| 40 | isa => Str, | ||
| 41 | clearer => 1, | ||
| 42 | predicate => 1, | ||
| 43 | ); | ||
| 44 | |||
| 45 | |||
| 46 | |||
| 47 | |||
| 48 | |||
| 49 | |||
| 50 | |||
| 51 | |||
| 52 | |||
| 53 | |||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | 25 | has sep => ( | |
| 58 | is => 'rw', | ||
| 59 | isa => Str, | ||
| 60 | clearer => 1, | ||
| 61 | predicate => 1, | ||
| 62 | ); | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | 1779 | ▶ | sub copy_into { $_[0]->_copy_attrs( $_[1], 'sep', 'pfx' ); } |
|
Subroutine
copy_into: called CC=1 SCAR=0.0
Pod
documented
| |||
| 73 | |||
| 74 | |||
| 75 | 25 | 1; | |
| 76 | |||
| 77 | # | ||
| 78 | # This file is part of IPC-PrettyPipe | ||
| 79 | # | ||
| 80 | # This software is Copyright (c) 2018 by Smithsonian Astrophysical Observatory. | ||
| 81 | # | ||
| 82 | # This is free software, licensed under: | ||
| 83 | # | ||
| 84 | # The GNU General Public License, Version 3, June 2007 | ||
| 85 | # | ||
| 86 | |||
| 87 | __END__ | ||