MooseX::Declare::Syntax::EmptyBlockIfMissing.3pm

Langue: en

Autres versions - même langue

Version: 2009-09-04 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

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

*
MooseX::Declare
*
MooseX::Declare::Syntax::NamespaceHandling
See MooseX::Declare