| 1 | |||||||||||
| 2 | package Paper::Specs::base::sheet; | ||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | $VERSION=0.01; | |||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 9 | 0 | my $class=shift; | |||||||||
| 10 | 0 | ▶ | bless \$class, $class unless ref($class); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub type { return 'sheet' } | ||||||||
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub sheet_width { Paper::Specs::convert ($_[0]->specs->{'sheet_width'}, $_[0]->specs->{'units'}) } | ||||||||
|
Subroutine
sheet_width: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 16 | 0 | ▶ | sub sheet_height { Paper::Specs::convert ($_[0]->specs->{'sheet_height'}, $_[0]->specs->{'units'}) } | ||||||||
|
Subroutine
sheet_height: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 17 | 0 | ▶ | sub sheet_size { return ($_[0]->sheet_width, $_[0]->sheet_height) } | ||||||||
|
Subroutine
sheet_size: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub specs { | ||||||||
|
Subroutine
specs: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 20 | 0 | die "$_[0] does not have any specs defined!\n"; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | sub code { $_[0]->specs->{'code'} } | ||||||||
|
Subroutine
code: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 24 | 0 | ▶ | sub description { $_[0]->specs->{'description'} } | ||||||||
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 25 | |||||||||||
| 26 | 1 | 1; | |||||||||
| 27 | |||||||||||