1MooseX::Declare::ContexUts:e:rNaCmoenstpraicbeudt(e3dMpomPo)esrelX:D:oDceucmleanrtea:t:iCoonntext::Namespaced(3pm)
2
3
4
6 MooseX::Declare::Context::Namespaced - Namespaced context
7
9 version 0.43
10
12 This context trait will add namespace functionality to the context.
13
15 namespace
16 This will be set when the "strip_namespace" method is called and the
17 namespace wasn't anonymous. It will contain the specified namespace,
18 not the fully qualified one.
19
21 strip_namespace
22 Maybe[Str] Object->strip_namespace()
23
24 This method is intended to parse the main namespace of a namespaced
25 keyword. It will use Devel::Declare::Context::Simples "strip_word"
26 method and store the result in the "namespace" attribute if true.
27
28 qualify_namespace
29 Str Object->qualify_namespace(Str $namespace)
30
31 If the $namespace passed it begins with a "::", it will be prefixed
32 with the outer namespace in the file. If there is no outer namespace,
33 an error will be thrown.
34
36 • MooseX::Declare
37
38 • MooseX::Declare::Context
39
41 Florian Ragwitz <rafl@debian.org>
42
44 This software is copyright (c) 2008 by Florian Ragwitz.
45
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48
49
50
51perl v5.32.1 2021M-o0o1s-e2X7::Declare::Context::Namespaced(3pm)