| 1 | 1 | ▶ | use Modern::Perl; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Renard::Incunabula::Common::Setup; | ||
| 3 | # ABSTRACT: Packages that can be imported into every module | ||
| 4 | 1 | $Renard::Incunabula::Common::Setup::VERSION = '0.005'; | |
| 5 | 1 | ▶ | use autodie; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use Import::Into; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Function::Parameters (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use Return::Type (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use MooX::TypeTiny (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 1 | ▶ | use Try::Tiny (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use Renard::Incunabula::Common::Error (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 1 | ▶ | use Path::Tiny (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | |||
| 19 | 2 | ▶ | sub import { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 20 | 2 | my ($class) = @_; | |
| 21 | |||
| 22 | 2 | my $target = caller; | |
| 23 | |||
| 24 | 2 | Modern::Perl->import::into( $target ); | |
| 25 | 2 | autodie->import::into( $target ); | |
| 26 | |||
| 27 | 0 | ▶ | my %type_tiny_fp_check = ( reify_type => sub { Type::Utils::dwim_type($_[0]) }, ); |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 28 | 2 | Function::Parameters->import::into( $target, | |
| 29 | { | ||
| 30 | fun => { defaults => 'function_lax' , %type_tiny_fp_check }, | ||
| 31 | classmethod => { defaults => 'classmethod_lax', %type_tiny_fp_check }, | ||
| 32 | method => { defaults => 'method_lax' , %type_tiny_fp_check }, | ||
| 33 | callback => { defaults => 'function_lax' , %type_tiny_fp_check, check_argument_count => 0 }, | ||
| 34 | } | ||
| 35 | ); | ||
| 36 | 2 | Return::Type->import::into( $target ); | |
| 37 | |||
| 38 | 2 | Try::Tiny->import::into( $target ); | |
| 39 | 2 | Renard::Incunabula::Common::Error->import::into( $target ); | |
| 40 | |||
| 41 | 2 | Path::Tiny->import::into( $target ); | |
| 42 | |||
| 43 | 2 | return; | |
| 44 | } | ||
| 45 | |||
| 46 | 1 | 1; | |
| 47 | |||
| 48 | __END__ | ||