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 of Moose::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>

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