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

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
                $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;

will delegate to "get_logger" in Log::Log4perl, sending it a nice string for a category.

The category is the class of the caller, concatenated a stringification of the object if the object can stringify.

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, 2006 by Infinity Interactive, Inc.

http://www.iinteractive.com

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