| 1 | # $Id$ | ||||||||||
| 2 | |||||||||||
| 3 | package Google::Chart::Type::Pie; | ||||||||||
| 4 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | with 'Google::Chart::Type::Simple'; | |||||||||
| 8 | |||||||||||
| 9 | 1 | has 'pie_type' => ( | |||||||||
| 10 | is => 'rw', | ||||||||||
| 11 | isa => enum([ qw(2d 3d) ]), | ||||||||||
| 12 | required => 1, | ||||||||||
| 13 | default => '2d' | ||||||||||
| 14 | ); | ||||||||||
| 15 | |||||||||||
| 16 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 17 | |||||||||||
| 18 | 1 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 1 | ▶ | no Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | |||||||||||
| 21 | 0 | ▶ | sub parameter_value { | ||||||||
|
Subroutine
parameter_value: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 22 | 0 | my $self = shift; | |||||||||
| 23 | |||||||||||
| 24 | 0 | ▶ | return $self->pie_type eq '3d' ? 'p3' : 'p'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 1 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||