| 1 |
#!/usr/bin/perl |
| 2 |
|
| 3 |
=head1 NAME |
| 4 |
|
| 5 |
Debconf::Element::Noninteractive - Dummy Element |
| 6 |
|
| 7 |
=cut |
| 8 |
|
| 9 |
package Debconf::Element::Noninteractive; |
| 10 |
use warnings; |
| 11 |
use strict; |
| 12 |
use base qw(Debconf::Element); |
| 13 |
|
| 14 |
=head1 DESCRIPTION |
| 15 |
|
| 16 |
This is noninteractive dummy element. When told to display itself, it does |
| 17 |
nothing. |
| 18 |
|
| 19 |
=head1 METHODS |
| 20 |
|
| 21 |
=over 4 |
| 22 |
|
| 23 |
=item visible |
| 24 |
|
| 25 |
This type of element is not visible. |
| 26 |
|
| 27 |
=cut |
| 28 |
|
| 29 |
sub visible { |
| 30 |
my $this=shift; |
| 31 |
|
| 32 |
return; |
| 33 |
} |
| 34 |
|
| 35 |
=item show |
| 36 |
|
| 37 |
Set the value to the default, or blank if no default is available. |
| 38 |
|
| 39 |
=cut |
| 40 |
|
| 41 |
sub show { |
| 42 |
my $this=shift; |
| 43 |
|
| 44 |
my $default=''; |
| 45 |
$default=$this->question->value if defined $this->question->value; |
| 46 |
$this->value($default); |
| 47 |
} |
| 48 |
|
| 49 |
=back |
| 50 |
|
| 51 |
=head1 AUTHOR |
| 52 |
|
| 53 |
Joey Hess <[email protected]> |
| 54 |
|
| 55 |
=cut |
| 56 |
|
| 57 |
1 |