Changeset 16164 for lang/perl/Google-Chart
- Timestamp:
- 07/24/08 12:13:45 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type/Pie.pm
r16101 r16164 3 3 package Google::Chart::Type::Pie; 4 4 use Moose; 5 6 use constant parameter_value => 'p'; 5 use Moose::Util::TypeConstraints; 7 6 8 7 with 'Google::Chart::Type'; 8 9 has 'type' => ( 10 is => 'rw', 11 isa => enum([ qw(2d 3d) ]), 12 required => 1, 13 default => '2d' 14 ); 9 15 10 16 __PACKAGE__->meta->make_immutable; 11 17 12 18 no Moose; 19 20 sub parameter_value { 21 my $self = shift; 22 23 return $self->type eq '3d' ? 'p3' : 'p'; 24 } 13 25 14 26 1; … … 20 32 Google::Chart::Type::Pie - Google::Chart Pie Chart Type 21 33 34 =head1 SYNOPSIS 35 36 Google::Chart->new( 37 type => 'Pie' 38 ); 39 40 Google::Chart->new( 41 type => { 42 module => 'Pie', 43 args => { 44 type => '3d' 45 } 46 } 47 ); 48 22 49 =cut
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)