Games::Pandemic::Config - pandemic local configuration


Games-Pandemic documentation  | view source Contained in the Games-Pandemic distribution.

Index


NAME

Top

Games::Pandemic::Config - pandemic local configuration

VERSION

Top

version 1.111030

SYNOPSIS

Top

    use Games::Pandemic::Config;
    my $config = Games::Pandemic::Config->instance;
    my $width  = $config->get( 'canvas_width' );

DESCRIPTION

Top

This module implements a basic persistant configuration, using key / value pairs.

The module itself is implemented as a singleton, available with the instance() class method.

METHODS

Top

my $value = $config->get( $key )

Return the $value associated to $key in the configuration. Note that if there's no local configuration defined, a default will be provided.

AUTHOR

Top

Jerome Quelin

COPYRIGHT AND LICENSE

Top


Games-Pandemic documentation  | view source Contained in the Games-Pandemic distribution.