.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "MooseX::TraitFor::Meta::Class::BetterAnonClassNames 3pm" .TH MooseX::TraitFor::Meta::Class::BetterAnonClassNames 3pm "2018-01-02" "perl v5.26.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" MooseX::TraitFor::Meta::Class::BetterAnonClassNames \- Metaclass trait to *attempt* to demystify generated anonymous class names .SH "VERSION" .IX Header "VERSION" This document describes version 0.002003 of MooseX::TraitFor::Meta::Class::BetterAnonClassNames \- released March 23, 2017 as part of MooseX-TraitFor-Meta-Class-BetterAnonClassNames. .SH "ATTRIBUTES" .IX Header "ATTRIBUTES" .SS "is_anon" .IX Subsection "is_anon" Read-only, Boolean, default: false. .PP Provides an attribute in the place of \*(L"is_anon\*(R" in Class::MOP::Package. .SS "anon_package_prefix" .IX Subsection "anon_package_prefix" Read-only, String .SH "METHODS" .IX Header "METHODS" .SS "_build_anon_package_prefix" .IX Subsection "_build_anon_package_prefix" Builder method for the \*(L"anon_package_prefix\*(R" attribute. .SS "_anon_package_middle" .IX Subsection "_anon_package_middle" Defines what the \*(L"middle\*(R" of our anonymous package names is; provided for ease of overriding and hardcoded to: .PP .Vb 1 \& ::_\|_ANON_\|_::SERIAL:: .Ve .SS "_anon_package_prefix" .IX Subsection "_anon_package_prefix" Returns the full prefix used to generate anonymous package names; if called on an instance then returns a sensible prefix (generally class name) stashed in \*(L"anon_package_prefix\*(R"; otherwise returns the result of a call to \*(L"_anon_package_prefix\*(R" in Moose::Meta::Class. .SS "create" .IX Subsection "create" Set the package name to a nicer anonymous class name if is_anon is passed and true and anon_package_prefix is passed and a non-empty string. .SS "create_anon_class" .IX Subsection "create_anon_class" Create an anonymous class, as via \*(L"create_anon_class\*(R" in Moose::Meta::Class, but with a kinder, gentler package name \*(-- if possible. .SH "SUMMARY" .IX Header "SUMMARY" You really want to be looking at \*(L"with_traits\*(R" in MooseX::Util. .SH "TRAIT ALIASES" .IX Header "TRAIT ALIASES" .SS "BetterAnonClassNames" .IX Subsection "BetterAnonClassNames" Resolves out to the full name of this trait. .SH "SEE ALSO" .IX Header "SEE ALSO" Please see those modules/websites for more information related to this module. .IP "\(bu" 4 MooseX::Util .SH "BUGS" .IX Header "BUGS" Please report any bugs or feature requests on the bugtracker website .PP When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. .SH "AUTHOR" .IX Header "AUTHOR" Chris Weyl .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is Copyright (c) 2014 by Chris Weyl. .PP This is free software, licensed under: .PP .Vb 1 \& The GNU Lesser General Public License, Version 2.1, February 1999 .Ve