| 1 | package NCC::WarpCore; | ||||||||||
| 2 | 2 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | $NCC::WarpCore::AUTHORITY = 'cpan:GETTY'; | |||||||||
| 4 | } | ||||||||||
| 5 | { | ||||||||||
| 6 | 2 | $NCC::WarpCore::VERSION = '0.001'; | |||||||||
| 7 | } | ||||||||||
| 8 | # ABSTRACT: NCC Standard WarpCore (You can make your own) | ||||||||||
| 9 | |||||||||||
| 10 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 2 | ▶ | use Import::Into; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 2 | has root => ( is => 'rw' ); | |||||||||
| 14 | |||||||||||
| 15 | 3 | ▶ | sub energize { | ||||||||
|
Subroutine
energize: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 16 | 3 | my ( $self, $target ) = @_; | |||||||||
| 17 | 3 | ▶ | $self->root($target) unless defined $self->root; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 3 | $self->import_moose($target); | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 3 | ▶ | sub import_moose { Moose->import::into($_[1]) } | ||||||||
|
Subroutine
import_moose: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 22 | |||||||||||
| 23 | 1 | ▶ | sub enervate { | ||||||||
|
Subroutine
enervate: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 24 | 1 | my ( $self, $target ) = @_; | |||||||||
| 25 | 1 | $target->meta->make_immutable; | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 2 | 1; | |||||||||
| 29 | |||||||||||
| 30 | __END__ | ||||||||||