BusyBird::Config - configuration holder for BusyBird
This is an internal module. End-users should not use it.
BusyBird::Config is a simple configuration holder for BusyBird.
It emits warning via BusyBird::Log if unknown configuration parameter is set. This helps users find typo.
If with_default option is enabled, it lazily creates and returns the default value when get_config() is called.
with_default
get_config()
The constructor.
Fields in %args are:
%args
type
Type of the configuration. Either "global" or "timeline".
"global"
"timeline"
If set to true, it lazily creates and returns the default value when get_config() is called on a known but not-yet-set parameter.
Returns the value of the config parameter named $key.
$key
If the value for $key is already set by set_config() method, it returns that value.
set_config()
Otherwise, if with_default option is enabled and the default value for $key is prepared, it returns that value.
Otherwise it returns undef.
undef
Set config parameters.
If some $key is unknown for this type of $con, it emits warning via BusyBird::Log.
$con
Toshio Ito, <toshioito at cpan.org>
<toshioito at cpan.org>
To install BusyBird, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BusyBird
CPAN shell
perl -MCPAN -e shell install BusyBird
For more information on module installation, please visit the detailed CPAN module installation guide.