| 1 | package MARC::Spec::Subfield; | ||||||||||
| 2 | |||||||||||
| 3 | 13 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 13 | ▶ | use namespace::clean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 13 | our $VERSION = '1.0.0'; | |||||||||
| 7 | |||||||||||
| 8 | 13 | extends 'MARC::Spec::Structure'; | |||||||||
| 9 | |||||||||||
| 10 | 13 | has code => ( | |||||||||
| 11 | is => 'rw', | ||||||||||
| 12 | required => 1 | ||||||||||
| 13 | ); | ||||||||||
| 14 | |||||||||||
| 15 | sub BUILDARGS { | ||||||||||
| 16 | 55 | ▶ | my ($class, @args) = @_; | ||||||||
|
Subroutine
BUILDARGS: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 17 | 55 | ▶ | if (@args % 2 == 1) { unshift @args, "code" } | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 55 | return { @args }; | |||||||||
| 19 | } | ||||||||||
| 20 | 13 | 1; | |||||||||
| 21 | |||||||||||
| 22 | __END__ | ||||||||||