| 1 | 2 | ▶ | use strict; # redundant, but quiets perlcritic |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | package MooX::StrictConstructor::Role::Constructor; | ||
| 4 | |||
| 5 | 2 | our $VERSION = '0.013'; | |
| 6 | |||
| 7 | 2 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 2 | with 'MooX::StrictConstructor::Role::Constructor::Base'; | |
| 10 | |||
| 11 | 6 | ▶ | around _check_required => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 12 | 6 | my ($orig, $self, $spec, @rest) = @_; | |
| 13 | 6 | my $code = $self->$orig($spec, @rest); | |
| 14 | 6 | $code .= $self->_cap_call($self->_check_strict($spec, '$args')); | |
| 15 | 6 | return $code; | |
| 16 | 2 | }; | |
| 17 | |||
| 18 | 2 | 1; | |
| 19 | |||
| 20 | __END__ | ||