| 1 | package Acme::KnowledgeWisdom; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | our $VERSION = '0.01'; | |||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use warnings FATAL => 'all'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | has 'in_questions' => ( isa => 'Bool', is => 'ro', default => 1); | |||||||||
| 9 | 1 | has 'has_already' => ( isa => 'Bool', is => 'ro', default => 0); | |||||||||
| 10 | |||||||||||
| 11 | 0 | ▶ | sub get { | ||||||||
|
Subroutine
get: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 12 | 0 | my $kw = shift; | |||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | return $kw->ask | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | if $kw->in_questions; | ||||||||||
| 16 | |||||||||||
| 17 | 0 | return 42; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub ask { | ||||||||
|
Subroutine
ask: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 21 | 0 | my $self = shift; | |||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | return 42 | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | if $self->has_already; | ||||||||||
| 25 | |||||||||||
| 26 | 0 | my $kw = Acme::KnowledgeWisdom->new; | |||||||||
| 27 | 0 | return $kw->get; | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | 1 | 1; | |||||||||
| 31 | |||||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||