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

Langue: en

Autres versions - même langue

Version: 2009-05-29 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

MooseX::Declare::Syntax::EmptyBlockIfMissing - require that the consumer handles non-existant blocks

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