1MooseX::TraitFor::Meta:U:sCeMlroaosCssoe:nX:t:Br:eiTtbrtuaetiretAdFnooPrne:Cr:llMaesDtsoaNc:au:mmCeelsna(ts3as)t:i:oBnetterAnonClassNames(3)
2
3
4
6 MooseX::TraitFor::Meta::Class::BetterAnonClassNames - Metaclass trait
7 to *attempt* to demystify generated anonymous class names
8
10 This document describes version 0.002003 of
11 MooseX::TraitFor::Meta::Class::BetterAnonClassNames - released March
12 23, 2017 as part of MooseX-TraitFor-Meta-Class-BetterAnonClassNames.
13
15 is_anon
16 Read-only, Boolean, default: false.
17
18 Provides an attribute in the place of "is_anon" in Class::MOP::Package.
19
20 anon_package_prefix
21 Read-only, String
22
24 _build_anon_package_prefix
25 Builder method for the "anon_package_prefix" attribute.
26
27 _anon_package_middle
28 Defines what the "middle" of our anonymous package names is; provided
29 for ease of overriding and hardcoded to:
30
31 ::__ANON__::SERIAL::
32
33 _anon_package_prefix
34 Returns the full prefix used to generate anonymous package names; if
35 called on an instance then returns a sensible prefix (generally class
36 name) stashed in "anon_package_prefix"; otherwise returns the result of
37 a call to "_anon_package_prefix" in Moose::Meta::Class.
38
39 create
40 Set the package name to a nicer anonymous class name if is_anon is
41 passed and true and anon_package_prefix is passed and a non-empty
42 string.
43
44 create_anon_class
45 Create an anonymous class, as via "create_anon_class" in
46 Moose::Meta::Class, but with a kinder, gentler package name -- if
47 possible.
48
50 You really want to be looking at "with_traits" in MooseX::Util.
51
53 BetterAnonClassNames
54 Resolves out to the full name of this trait.
55
57 Please see those modules/websites for more information related to this
58 module.
59
60 • MooseX::Util
61
63 Please report any bugs or feature requests on the bugtracker website
64 <https://github.com/RsrchBoy/moosex-traitfor-meta-class-betteranonclassnames/issues>
65
66 When submitting a bug or request, please include a test-file or a patch
67 to an existing test-file that illustrates the bug or desired feature.
68
70 Chris Weyl <cweyl@alumni.drew.edu>
71
73 This software is Copyright (c) 2014 by Chris Weyl.
74
75 This is free software, licensed under:
76
77 The GNU Lesser General Public License, Version 2.1, February 1999
78
79
80
81perl v5.32.1 MooseX::Tr2a0i2t1F-o0r1:-:2M7eta::Class::BetterAnonClassNames(3)