Moose::...mposite(3)
π Moose::Meta::Role::Composite π
okay so bestie, welcome to the manual page for Moose::Meta::Role::Composite, living its best life in the User Contributed Perl Documentation section of the manual pages. yes, the header up top is all squished and truncated like Moose::...mposite(3) because terminal widths are haters, but the full name is right here and it's iconic. π
β¨ NAME β¨
Moose::Meta::Role::Composite β an object to represent the set of roles. that's it, that's the whole vibe. π
πΈ VERSION π¨
version 2.4000
π¦ DESCRIPTION π¦
so a composite is a role that consists of a set of two or more roles. like a little friend group that decided to show up as one unit. π
and the API of a composite role is almost identical to that of a regular role. almost. not completely. we'll get to the differences, don't worry. π
π INHERITANCE π
Moose::Meta::Role::Composite is a subclass of Moose::Meta::Role. so yeah, it inherited the family traits. main character energy runs in the bloodline. π§¬β¨
π₯ METHODS π₯
π Moose::Meta::Role::Composite->new(%options)
this returns a new composite role object. slay. it accepts the same options as its parent class, but with a few changes, so pay attention bestie:
rolesβ this option is an array reference containing a list ofMoose::Meta::Roleobject. and listen: this is a required option. no roles, no composite, periodt. π¨nameβ if a name is not given, one is generated from the roles provided. so it'll just make one up for you, no big deal. π«apply_params(\%role_params)β creates a new RoleSummation role application with%role_paramsand applies the composite role to it. the RoleSummation role application class used is determined by the composite role'sapplication_role_summation_classattribute. iykyk. π«Άreinitialize($metaclass)β likeClass::MOP::Package->reinitialize, but it does not allow passing a string with the package name, because there is no real package for composite roles. it's a role, not a package, don't come for it. π
π BUGS π
see "BUGS" in Moose for the details on reporting bugs. go tell the Moose folks, they'll handle it. π
π AUTHORS π
these are the legends who made this happen, show some respect:
- Stevan Little <stevan@cpan.org>
- Dave Rolsky <autarch@urth.org>
- Jesse Luehrs <doy@cpan.org>
- Shawn M Moore <sartak@cpan.org>
- ΧΧΧΧ Χ§ΧΧ'ΧΧ (Yuval Kogman) <nothingmuch@woobling.org>
- Karen Etheridge <ether@cpan.org>
- Florian Ragwitz <rafl@debian.org>
- Hans Dieter Pearcey <hdp@cpan.org>
- Chris Prather <chris@prather.org>
- Matt S Trout <mstrout@cpan.org>
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2006 by Infinity Interactive, Inc.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so go wild, respectfully. πΈ
and that's the whole page bestie!! π this was generated by perl version v5.42.0, dated 2025-07-25, and honestly? it ate. go forth and build your composite roles, you absolute icon. πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Moose 2.4000-4.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms