| Config-Objective documentation | view source | Contained in the Config-Objective distribution. |
Config::Objective::Boolean - boolean data type class for Config::Objective
use Config::Objective;
use Config::Objective::Boolean;
my $conf = Config::Objective->new('filename', {
'boolobj' => Config::Objective::Boolean->new()
});
The Config::Objective::Boolean module provides a class that represents a boolean value in an object so that it can be used with Config::Objective. Its methods can be used to manipulate the encapsulated boolean value from the config file.
The Config::Objective::Boolean class is derived from the Config::Objective::DataType class, but it defines/overrides the following methods:
Sets the object's value to the supplied value. The value must be one of the following: "yes", "no", "on", "off", "true", "false", 1, or 0.
Returns true if the argument equals the object's value. If the argument is not defined, it is treated as if it were true.
Mark D. Roth <roth@uiuc.edu>
| Config-Objective documentation | view source | Contained in the Config-Objective distribution. |