logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Moose::Meta::Method::Delegation - A Moose Method metaclass for delegation methods

Authors

       •   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>

Bugs

       See "BUGS" in Moose for details on reporting bugs.

Description

       This is a subclass of Moose::Meta::Method for delegation methods.

Methods

Moose::Meta::Method::Delegation->new(%options)
       This creates the delegation methods based on the provided %options.

       attribute
           This must be an instance of "Moose::Meta::Attribute" which this accessor is being generated for. This
           options is required.

       delegate_to_method
           The method in the associated attribute's value to which we delegate. This can be either a method name
           or a code reference.

       curried_arguments
           An  array  reference  of  arguments  that  will be prepended to the argument list for any call to the
           delegating method.

   $metamethod->associated_attribute
       Returns the attribute associated with this method.

   $metamethod->curried_arguments
       Return any curried arguments that will be passed to the delegated method.

   $metamethod->delegate_to_method
       Returns the method to which this method delegates, as passed to the constructor.

Name

       Moose::Meta::Method::Delegation - A Moose Method metaclass for delegation methods

Version

       version 2.2207

See Also