NAME
DCI::Context - Base class for context packages.
DESCRIPTION
All Context classes inherit from this class. This class provides several key methods.
SYNOPSIS
See DCI or DCI::Meta::Context, you should probably not directly subclass this yourself.
METHODS
- $class->new( $ROLE => $OBJECT, ... )
-
Creates a new instance of your context with the specified role to object mapping.
- $class->dci_export_to( $PACKAGE )
-
Exports sugar methods to the specified package.
- $class->import( @IMPORT_LIST )
-
Used automatically when someone imports your class
use Your::Context
.
ACHNOWLEDGEMENTS
The DCI concept was created by Trygve Reenskaug, (inventor of MVC) and James Coplien.
AUTHORS
Chad Granum exodist7@gmail.com
COPYRIGHT
Copyright (C) 2011 Chad Granum
DCI is free software; Standard perl licence.
DCI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.