Field/ConTraEnc.pm

filter: Statementstmt 93.3% 14 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 85.0% 17 / 20 CC 1 SCAR 2.2
CC
1
Cov
93%
encoding
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Parser/Results.pm ↑ Summary Field/ContDisp.pm »
1 package MIME::Field::ConTraEnc;
2  
3  
4 =head1 NAME
5  
6 MIME::Field::ConTraEnc - a "Content-transfer-encoding" field
7  
8  
9 =head1 DESCRIPTION
10  
11 A subclass of Mail::Field.
12  
13 I<Don't use this class directly... its name may change in the future!>
14 Instead, ask Mail::Field for new instances based on the field name!
15  
16  
17 =head1 SYNOPSIS
18  
19 use Mail::Field;
20 use MIME::Head;
21  
22 # Create an instance from some text:
23 $field = Mail::Field->new('Content-transfer-encoding', '7bit');
24  
25 # Get the encoding.
26 # Possible values: 'binary', '7bit', '8bit', 'quoted-printable',
27 # 'base64' and '' (unspecified). Note that there can't be a
28 # single default for this, since it depends on the content type!
29 $encoding = $field->encoding;
30  
31 =head1 SEE ALSO
32  
33 L<MIME::Field::ParamVal>, L<Mail::Field>
34  
35 =head1 AUTHOR
36  
37 Eryq (F<eryq@zeegee.com>), ZeeGee Software Inc (F<http://www.zeegee.com>).
38 Dianne Skoll (dianne@skoll.ca)
39  
40 =cut
41  
42 36 require 5.001;
43 36 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
44 36 ▶use MIME::Field::ParamVal;
Subroutine BEGIN: called CC=1 SCAR=0.0
45 36 ▶use vars qw($VERSION @ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
46  
47 36 @ISA = qw(MIME::Field::ParamVal);
48  
49 # The package version, both in 1.23 style *and* usable by MakeMaker:
50 36 $VERSION = "5.522";
51  
52 # Install it:
53 36 bless([])->register('Content-transfer-encoding');
54  
55 #------------------------------
56  
57 0 ▶sub encoding {
Subroutine encoding: not called CC=1 SCAR=6.9
Pod undocumented
58 0 shift->paramstr('_', @_);
59 }
60  
61 #------------------------------
62 36 1;
63  
« Parser/Results.pm ↑ Summary Field/ContDisp.pm »