logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MooseX::Declare::Syntax::EmptyBlockIfMissing - Handle missing blocks after keywords

Author

       Florian Ragwitz <rafl@debian.org>

Description

       The MooseX::Declare::Syntax::NamespaceHandling role will require that the consumer handles the case of
       non-existent 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.

Name

       MooseX::Declare::Syntax::EmptyBlockIfMissing - Handle missing blocks after keywords

See Also

       •   MooseX::Declare

       •   MooseX::Declare::Syntax::NamespaceHandling

Version

       version 0.43

See Also