
Verby::Context - A sort of scratchpad every Verby::Step gets from Verby::Dispatcher.

sub do {
my $self = shift;
my $context = shift;
print $context->rockets; # get a value
gDi
$context->milk("very"); # set a value
}

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.


See the annotated scripts/module_builder.pl for how a context is used in practice.

$c->logger;
See MooseX::LogDispatch.

None that we are aware of. Of course, if you find a bug, let us know, and we will be sure to fix it.

We use Devel::Cover to test the code coverage of the tests, please refer to COVERAGE section of the Verby module for more information.


Yuval Kogman, <nothingmuch@woobling.org>

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.