| MooseX-Declare documentation | view source | Contained in the MooseX-Declare distribution. |
MooseX::Declare::Syntax::EmptyBlockIfMissing - Handle missing blocks after keywords
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.
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.
This software is copyright (c) 2010 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| MooseX-Declare documentation | view source | Contained in the MooseX-Declare distribution. |