API2/Basic/PDF/Number.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 100% 16 / 16 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
convert
1.0
CRAP 1.0
« API2/Resource/XObject/Form/BarCode/codabar.pm ↑ Summary API2/Content/Text.pm »
1 # Code in the PDF::API2::Basic::PDF namespace was originally copied from the
2 # Text::PDF distribution.
3 #
4 # Copyright Martin Hosken <Martin_Hosken@sil.org>
5 #
6 # Martin Hosken's code may be used under the terms of the MIT license.
7 # Subsequent versions of the code have the same license as PDF::API2.
8  
9 package PDF::API2::Basic::PDF::Number;
10  
11 40 ▶use base 'PDF::API2::Basic::PDF::String';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 40 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 40 our $VERSION = '2.044'; # VERSION
16  
17 =head1 NAME
18  
19 PDF::API2::Basic::PDF::Number - Low-level PDF numeric object
20  
21 =head1 METHODS
22  
23 =head2 $n->convert($str)
24  
25 Converts a string from PDF to internal, by doing nothing
26  
27 =cut
28  
29 sub convert {
30 82 ▶ return $_[1];
Subroutine convert: called CC=1 SCAR=0.0
Pod documented
31 }
32  
33 =head2 $n->as_pdf
34  
35 Converts a number to PDF format
36  
37 =cut
38  
39 sub as_pdf {
40 589 ▶ return $_[0]->{'val'};
Subroutine as_pdf: called CC=1 SCAR=0.0
Pod documented
41 }
42  
43 40 1;
« API2/Resource/XObject/Form/BarCode/codabar.pm ↑ Summary API2/Content/Text.pm »