Verby::Context - A sort of scratchpad every L gets from


Verby documentation  | view source Contained in the Verby distribution.

Index


NAME

Top

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

SYNOPSIS

Top

	sub do {
		my $self = shift;
		my $context = shift;

		print $context->rockets; # get a value
gDi
		$context->milk("very"); # set a value
	}

DESCRIPTION

Top

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

Top

logger

EXAMPLE USAGE

Top

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

THE LOGGER FIELD

Top

	$c->logger;

See MooseX::LogDispatch.

BUGS

Top

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

Top

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

Top

AUTHOR

Top

Yuval Kogman, <nothingmuch@woobling.org>

COPYRIGHT AND LICENSE

Top


Verby documentation  | view source Contained in the Verby distribution.