17 |
#'ne' => sub { $_[0]->{field_body} ne $_[1] }, |
#'ne' => sub { $_[0]->{field_body} ne $_[1] }, |
18 |
fallback => 1; |
fallback => 1; |
19 |
|
|
|
=head1 CONSTRUCTORS |
|
|
|
|
|
The following methods construct new C<Message::Field::Structured> objects: |
|
|
|
|
|
=over 4 |
|
|
|
|
|
=cut |
|
|
|
|
20 |
## Initialize of this class -- called by constructors |
## Initialize of this class -- called by constructors |
21 |
%DEFAULT = ( |
%DEFAULT = ( |
22 |
_ARRAY_NAME => '', |
_ARRAY_NAME => '', |
56 |
for my $name (keys %options) { |
for my $name (keys %options) { |
57 |
if (substr ($name, 0, 1) eq '-') { |
if (substr ($name, 0, 1) eq '-') { |
58 |
$self->{option}->{substr ($name, 1)} = $options{$name}; |
$self->{option}->{substr ($name, 1)} = $options{$name}; |
59 |
} elsif (lc $name eq 'body') { |
} elsif ($name eq 'body') { |
60 |
$self->{field_body} = $options{$name}; |
$self->{field_body} = $options{$name}; |
61 |
} |
} |
62 |
} |
} |
63 |
$self->{comment} = []; |
$self->{comment} = []; |
64 |
} |
} |
65 |
|
|
66 |
|
=head1 CONSTRUCTORS |
67 |
|
|
68 |
|
The following methods construct new C<Message::Field::Unstructured> objects: |
69 |
|
|
70 |
|
=over 4 |
71 |
|
|
72 |
=item Message::Field::Structured->new ([%options]) |
=item Message::Field::Structured->new ([%options]) |
73 |
|
|
74 |
Constructs a new C<Message::Field::Structured> object. You might pass some |
Constructs a new C<Message::Field::Structured> object. You might pass some |