| 1 | package HTTP::MobileAgent::Display; | ||||||||||
| 2 | 10 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 10 | __PACKAGE__->HTTP::MobileAgent::make_accessors( | |||||||||
| 4 | qw(width height color depth width_bytes height_bytes) | ||||||||||
| 5 | ); | ||||||||||
| 6 | |||||||||||
| 7 | 10 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 10 | $VERSION = 0.17; | |||||||||
| 9 | |||||||||||
| 10 | sub new { | ||||||||||
| 11 | 7 | ▶ | my($class, %data) = @_; | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 12 | 7 | bless {%data}, $class; | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | sub size { | ||||||||||
| 16 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
size: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 17 | 0 | ▶ | return wantarray ? ($self->width, $self->height) : $self->width * $self->height; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 10 | 1; | |||||||||
| 21 | __END__ | ||||||||||