1Mail::SPF::Base(3) User Contributed Perl Documentation Mail::SPF::Base(3)
2
3
4
6 Mail::SPF::Base - Base class for Mail::SPF classes
7
9 use base 'Mail::SPF::Base';
10
11 sub new {
12 my ($class, @options) = @_;
13 my $self = $class->SUPER::new(@options);
14 ...
15 return $self;
16 }
17
19 Mail::SPF::Base is a common base class for all Mail::SPF classes.
20
21 Constructor
22 The following constructor is provided:
23
24 new(%options): returns Mail::SPF::Base
25 Creates a new object of the class on which the constructor was
26 invoked. The provided options are stored as key/value pairs in the
27 new object.
28
29 The "new" constructor may also be called on an object, in which
30 case the object is cloned. Any options provided override those
31 from the old object.
32
33 There are no common options defined in Mail::SPF::Base.
34
35 Class methods
36 The following class methods are provided:
37
38 class: returns string
39 Returns the class name of the class or object on which it is
40 invoked.
41
42 Class methods
43 The following class methods are provided:
44
45 make_accessor($name, $readonly): returns code-ref
46 Creates an accessor method in the class on which it is invoked.
47 The accessor has the given name and accesses the object field of
48 the same name. If $readonly is true, the accessor is made read-
49 only.
50
51 Instance methods
52 There are no common instance methods defined in Mail::SPF::Base.
53
55 Mail::SPF
56
57 For availability, support, and license information, see the README file
58 included with Mail::SPF.
59
61 Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>
62
63
64
65perl v5.16.3 2014-06-10 Mail::SPF::Base(3)