Padre::Config::Human.3pm

Langue: en

Autres versions - même langue

Version: 2009-03-29 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Padre::Config::Human - Padre configuration storing personal preferences

DESCRIPTION

This class implements the personal preferences of Padre's users. See "Padre::Config" for more information on the various types of preferences supported by Padre.

All human settings are stored in a hash as top-level keys (no hierarchy). The hash is then dumped in "config.yml", a YAML file in Padre's preferences directory (see "Padre::Config").

PUBLIC API


Constructors

my $config = Padre::Config::Human->create;
Create & return an empty user configuration. (almost empty, since it will still store the config schema revision - see version() below).

No params.

my $config = Padre::Config::Human->read;
Load & return the user configuration from the yaml file. Return undef in case of failure.

No params.

Object methods

my $revision = $config->version;
Return the config schema revision. Indeed, we might want to have more structured config instead of a plain hash later on. Note that this version is stored with the other user preferences at the same level.

No params.

$config->write;
(Over-)write user configuration to the yaml file.

No params.

  Copyright 2008-2009 The Padre development team as listed in Padre.pm.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.