NAME
Hyper::Context - Context for accessing our configuration
VERSION
This document describes Hyper::Context 0.01
SYNOPSIS
use Hyper::Context;
my $config = Hyper::Context
->new()
->get_config('MyApp::Control::Flow::Web::Shop');
or
package MyApp::Tester;
my $config = Hyper::Context->new()->get_config();
DESCRIPTION
Hyper::Context provides access to the context configuration for different sections. Mostly the config sections have the same name as the package where you use them.
ATTRIBUTES
SUBROUTINES/METHODS
BUILD
my $context = Hyper::Context->new();
Called automatically from Class::Std after object initialization. This method calls the reader for our context config.
get_config
$context->get_config('MyClass::Name');
or
$context->get_config();
Get named configuration section or config for a class/package. If there is no parameter given wie use the caller package name as section name.
DIAGNOSTICS
CONFIGURATION AND ENVIRONMENT
DEPENDENCIES
version
Class::Std
Hyper::Config::Reader::Context
INCOMPATIBILITIES
BUGS AND LIMITATIONS
RCS INFORMATIONS
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.