| 1 | package Acme::MilkyHolmes::Group::MilkyHolmes; | ||||||||||
| 2 | 3 | ▶ | use Mouse; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 3 | extends 'Acme::MilkyHolmes::Group::Detective'; | |||||||||
| 4 | 3 | with 'Acme::MilkyHolmes::Role::HasPersonalColor'; | |||||||||
| 5 | |||||||||||
| 6 | 12 | ▶ | sub color_enable { | ||||||||
|
Subroutine
color_enable: called CC=4 SCAR=14.6
Pod
undocumented
| |||||||||||
| 7 | 12 | my ($self) = shift; | |||||||||
| 8 | |||||||||||
| 9 | 12 | ▶ | if ( @_ ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | 0 | $self->{color_enable} = $_[0]; | |||||||||
| 11 | } | ||||||||||
| 12 | else { | ||||||||||
| 13 | 12 | ▶ | if ( defined $self->{color_enable} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | return $self->{color_enable} | ||||||||||
| 15 | 0 | } | |||||||||
| 16 | 12 | ▶ | if ( defined $self->common->[0]->{color_enable} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 4 | my $color_enable = $self->common->[0]->{color_enable} + 0; | |||||||||
| 18 | 4 | return $color_enable; | |||||||||
| 19 | } | ||||||||||
| 20 | } | ||||||||||
| 21 | 8 | return 1; #default is true | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | 3 | ▶ | no Mouse; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 26 | |||||||||||
| 27 | 3 | 1; | |||||||||