Moose::Meta::Method::Delegation(3pm)

Moose::Meta::Method::Delegation3pm

A moose method metaclass for delegation methods

Version

version 2.4001

Overview

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.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 8 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13
  9. Arch