| 1 | |||
| 2 | 10 | ▶ | use v5.10; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 10 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 10 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | package Context::Singleton::Frame::Builder::Array; | ||
| 7 | 10 | $Context::Singleton::Frame::Builder::Array::VERSION = '1.0.9'; | |
| 8 | 10 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 10 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 10 | ▶ | BEGIN { extends q (Context::Singleton::Frame::Builder::Base) } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | has q (dep) | ||
| 15 | => is => q (ro) | ||
| 16 | 2 | ▶ | => default => sub { +[] } |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 17 | 10 | ; | |
| 18 | |||
| 19 | 164 | ▶ | sub _build_required { |
|
Subroutine
_build_required: called CC=1 SCAR=0.0
| |||
| 20 | 164 | my ($self) = @_; | |
| 21 | |||
| 22 | return ( | ||
| 23 | $self->SUPER::_build_required, | ||
| 24 | 164 | @{ $self->dep }, | |
| 25 | ); | ||
| 26 | } | ||
| 27 | |||
| 28 | 24 | ▶ | sub build_callback_args { |
|
Subroutine
build_callback_args: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 29 | 24 | my ($self, $resolved) = @_; | |
| 30 | |||
| 31 | return ( | ||
| 32 | $self->SUPER::build_callback_args ($resolved), | ||
| 33 | 24 | @$resolved{@{ $self->dep }}, | |
| 34 | ); | ||
| 35 | } | ||
| 36 | |||
| 37 | 10 | 1; | |
| 38 | |||
| 39 | =pod | ||
| 40 | |||
| 41 | =encoding utf-8 | ||
| 42 | |||
| 43 | =head1 NAME | ||
| 44 | |||
| 45 | Context::Singleton::Frame::Builder::Array - Build value from arrayref dependencies | ||
| 46 | |||
| 47 | =head1 DESCRIPTION | ||
| 48 | |||
| 49 | This is internal package. | ||
| 50 | |||
| 51 | =head1 AUTHOR | ||
| 52 | |||
| 53 | Branislav ZahradnĂk <barney.cpan@gmail.com> | ||
| 54 | |||
| 55 | =head1 COPYRIGHT AND LICENCE | ||
| 56 | |||
| 57 | This module is part of L<Context::Singleton> distribution. | ||
| 58 | |||
| 59 | =cut | ||
| 60 | |||