Moose::...legation(3)
π Moose::Meta::Method::Delegation π
okay so bestie, welcome to Moose::Meta::Method::Delegation(3) β it's part of the User Contributed Perl Documentation, and yes the vibe is immaculate. This is the page for Moose::Meta::Method::Delegation, a Moose Method metaclass for delegation methods. π¦
β¨ VERSION β¨
version 2.4000 β she's grown, she's thriving π
πΈ DESCRIPTION πΈ
So like, this is a subclass of Moose::Meta::Method for delegation methods. That's the whole tea. It's giving "I inherit, therefore I am." π
π METHODS π
π« Moose::Meta::Method::Delegation->new(%options)
This is the constructor, and she creates the delegation methods based on the %options you hand her. Let's go through what you can pass:
attributeβ this must be an instance ofMoose::Meta::Attribute, specifically the one this accessor is being generated for. This option is required (no attribute, no method, sorry babe π).delegate_to_methodβ the method in the associated attribute's value that we delegate to. Can be either a method name or a code reference, your call, main character energy either way.curried_argumentsβ an array reference of arguments that get prepended to the argument list for any call to the delegating method. Yes bestie, they go first, no cap. β
π« $metamethod->associated_attribute
Returns the attribute associated with this method. Simple. Iconic. Periodt.
π« $metamethod->curried_arguments
Returns any curried arguments that will be passed to the delegated method. The little pre-loaded snack pack of args π
π« $metamethod->delegate_to_method
Returns the method to which this method delegates β exactly as passed to the constructor. What you put in is what you get out, fr fr.
π BUGS π
See "BUGS" in Moose for details on reporting bugs. (Not me being the messenger β go read the main Moose page, bestie.)
π«Ά AUTHORS π«Ά
These are the legends who made this happen, and we are obsessed:
- 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. π (Free as in freedom, bestie, not free as in "no license," iykyk.)
and that's the whole page!! mwah π this was generated from perl v5.42.0 on 2025-07-25, so if you're reading this from the future, hi, you're gorgeous, go write some delegation methods π§β¨
π¦ 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