1MooseX::Declare::SyntaxU:s:eKreyCwoonrtdr:i:bWuittehdM(o3Po)esrelX:D:oDceucmleanrtea:t:iSoynntax::Keyword::With(3)
2
3
4

NAME

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

SYNOPSIS

10         use MooseX::Declare;
11
12         class ::Baz {
13             with 'Qux';
14             ...
15         }
16

DESCRIPTION

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

CONSUMES

28       ·   MooseX::Declare::Syntax::KeywordHandling
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

SEE ALSO

38       ·   MooseX::Declare
39
40       ·   MooseX::Declare::Syntax::Keyword::Namespace
41
43       See MooseX::Declare
44
45
46
47perl v5.12.1                      2009M-o0o9s-e0X4::Declare::Syntax::Keyword::With(3)
Impressum