1MooseX::Declare::SyntaxU:s:eKreyCwoonrtdr:i:bWuitMteohdo(s3PepeXmr:)l:DDeoccluamreen:t:aStyinotnax::Keyword::With(3pm)
2
3
4

NAME

6       MooseX::Declare::Syntax::Keyword::With - Apply roles within a class- or
7       role-body
8

VERSION

10       version 0.43
11

SYNOPSIS

13         use MooseX::Declare;
14
15         class ::Baz {
16             with 'Qux';
17             ...
18         }
19

DESCRIPTION

21       The "with" keyword allows you to apply roles to the local class or
22       role. It differs from the "with"-option of the "class" and "role"
23       keywords in that it applies the roles immediately instead of deferring
24       application until the end of the class- or role-definition.
25
26       It also differs slightly from the "with" provided by Moose in that it
27       expands relative role names ("::Foo") according to the current
28       "namespace".
29

METHODS

31   parse
32         Object->parse(Object $context)
33
34       Will skip the declarator and make with "with" invocation apply the set
35       of specified roles after possible "namespace"-expanding has been done.
36

CONSUMES

38       •   MooseX::Declare::Syntax::KeywordHandling
39

SEE ALSO

41       •   MooseX::Declare
42
43       •   MooseX::Declare::Syntax::Keyword::Namespace
44

AUTHOR

46       Florian Ragwitz <rafl@debian.org>
47
49       This software is copyright (c) 2008 by Florian Ragwitz.
50
51       This is free software; you can redistribute it and/or modify it under
52       the same terms as the Perl 5 programming language system itself.
53
54
55
56perl v5.32.1                      20M2o1o-s0e1X-:2:7Declare::Syntax::Keyword::With(3pm)
Impressum