Florian Ragwitz > MooseX-Declare-0.22 > MooseX::Declare::Syntax::EmptyBlockIfMissing

Download:
MooseX-Declare-0.22.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  16
Open  7
Stalled  1
View/Report Bugs
Source   Latest Release: MooseX-Declare-0.40

NAME ^

MooseX::Declare::Syntax::EmptyBlockIfMissing

DESCRIPTION ^

The MooseX::Declare::Syntax::NamespaceHandling role will require that the consumer handles the case of non-existant blocks. This role will inject an empty block with only the generated code parts in it.

METHODS ^

handle_missing_block

  Object->handle_missing_block (Object $context, Str $body, %args)

This will inject the generated code surrounded by { ... } into the code where the keyword was called.

SEE ALSO ^

AUTHOR, COPYRIGHT & LICENSE ^

See MooseX::Declare

syntax highlighting: