68 |
my $self = bless {}, shift; |
my $self = bless {}, shift; |
69 |
my %option = @_; |
my %option = @_; |
70 |
for (%OPTION) {$option{$_} ||= $OPTION{$_}} |
for (%OPTION) {$option{$_} ||= $OPTION{$_}} |
71 |
|
$self->{id} = []; |
72 |
$self->{option} = \%option; |
$self->{option} = \%option; |
73 |
$self->_init_option ($self->{option}->{field_name}); |
$self->_init_option ($self->{option}->{field_name}); |
74 |
$self; |
$self; |
85 |
my $field_body = shift; |
my $field_body = shift; |
86 |
my %option = @_; |
my %option = @_; |
87 |
for (%OPTION) {$option{$_} ||= $OPTION{$_}} |
for (%OPTION) {$option{$_} ||= $OPTION{$_}} |
88 |
|
$self->{id} = []; |
89 |
$self->{option} = \%option; |
$self->{option} = \%option; |
90 |
$self->_init_option ($self->{option}->{field_name}); |
$self->_init_option ($self->{option}->{field_name}); |
91 |
$field_body = $self->delete_comment ($field_body); |
$field_body = $self->delete_comment ($field_body); |
110 |
|
|
111 |
=cut |
=cut |
112 |
|
|
113 |
sub id ($) {@{shift->{id}}} |
sub id ($) { |
114 |
|
my $self = shift; |
115 |
|
wantarray? @{$self->{id}}: $self->{id}->[0]; |
116 |
|
} |
117 |
|
|
118 |
=head2 $self->add ($msg_id, [%option]) |
=head2 $self->add ($msg_id, [%option]) |
119 |
|
|