Take me over?
NAME
Verby::Context - A sort of scratchpad every Verby::Step gets from Verby::Dispatcher.
SYNOPSIS
sub do {
my $self = shift;
my $context = shift;
print $context->rockets; # get a value
gDi
$context->milk("very"); # set a value
}
DESCRIPTION
A context has two roles in Verby. The first is to control what a Verby::Action will do, by providing it with parameters, and the other is to share variables that the action sets, so that other steps may have them too.
It is a mutable Verby::Config::Data that derives from the global context.
METHODS
- logger
EXAMPLE USAGE
See the annotated scripts/module_builder.pl for how a context is used in practice.
THE LOGGER FIELD
$c->logger;
See MooseX::LogDispatch.
BUGS
None that we are aware of. Of course, if you find a bug, let us know, and we will be sure to fix it.
CODE COVERAGE
We use Devel::Cover to test the code coverage of the tests, please refer to COVERAGE section of the Verby module for more information.
SEE ALSO
AUTHOR
Yuval Kogman, <nothingmuch@woobling.org>
COPYRIGHT AND LICENSE
Copyright 2005-2008 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.