The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Hyper::Config::Object::Default - Default Configuration Object

VERSION

This document describes Hyper::Config::Object::Default 0.01

SYNOPSIS

    use Hyper::Config::Object::Default;

    my $default = Hyper::Config::Object::Default->new({
        data => {
            file => '/tmp/x.tmp',
            path => '/tmp',
        }
    });
    $default->get_path() eq '/tmp';

DESCRIPTION

Hyper::Config::Object::Default is used for storing simple configuration items like those used in the hyper context.

ATTRIBUTES

data :init_arg

SUBROUTINES/METHODS

new

    my $default = Hyper::Config::Object::Default->new({
        data => {
            file => '/tmp/x.tmp',
            path => '/tmp',
        }
    });

Each key of the data hash ref init_arg is accessable via a get_$name_of_key method which is added via AUTOMETHOD.

get_*

    $default->get_path();

Where * is a key of the data init_arg. Returns value of the value with the key * in the hash ref of init_arg data.

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

DEPENDENCIES

  • version

  • Class::Std::Storable

INCOMPATIBILITIES

BUGS AND LIMITATIONS

RCS INFORMATIONS

Last changed by
 $Author: ac0v $
Id
 $Id: Default.pm 317 2008-02-16 01:52:33Z ac0v $
Revision
 $Revision: 317 $
Date
 $Date: 2008-02-16 02:52:33 +0100 (Sa, 16 Feb 2008) $
HeadURL
 $HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/branches/0.04/lib/Hyper/Config/Object/Default.pm $

AUTHOR

Andreas Specht <ACID@cpan.org>

LICENSE AND COPYRIGHT

Copyright (c) 2007, Andreas Specht <ACID@cpan.org>. All rights reserved.

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