1MooseX::Declare::ContexUts:e:rNaCmoenstpraicbeudt(e3d)PMeorolseDXo:c:uDmeecnltaartei:o:nContext::Namespaced(3)
2
3
4
6 MooseX::Declare::Context::Namespaced - Namespaced context
7
9 This context trait will add namespace functionality to the context.
10
12 namespace
13 This will be set when the "strip_namespace" method is called and the
14 namespace wasn't anonymous. It will contain the specified namespace,
15 not the fully qualified one.
16
18 strip_namespace
19 Maybe[Str] Object->strip_namespace()
20
21 This method is intended to parse the main namespace of a namespaced
22 keyword. It will use Devel::Declare::Context::Simples "strip_word"
23 method and store the result in the "namespace" attribute if true.
24
25 qualify_namespace
26 Str Object->qualify_namespace(Str $namespace)
27
28 If the $namespace passed it begins with a "::", it will be prefixed
29 with the outer namespace in the file. If there is no outer namespace,
30 an error will be thrown.
31
33 · MooseX::Declare
34
35 · MooseX::Declare::Context
36
38 See MooseX::Declare
39
40
41
42perl v5.12.1 2009-0M9o-o0s4eX::Declare::Context::Namespaced(3)