MooseX::MethodAttributes::Role::Meta::Class(3pm)

MooseX::MethodAttributes::Role::Meta::Class3pm

Metaclass role for storing code attributes

Version

version 0.32

Methods

get_method_with_attributes_list

Gets the list of meta methods for local methods of this class that have attributes in the order they have been registered.

get_all_methods_with_attributes

Gets the list of meta methods of local and inherited methods of this class, that have attributes. Base class methods come before subclass methods. Methods of one class have the order they have been declared in.

get_nearest_methods_with_attributes

The same as get_all_methods_with_attributes, except that methods from parent classes are not included if there is an attribute-less method in a child class.

For example, given:

    package BaseClass;
    sub foo : Attr {}
    sub bar : Attr {}
    package SubClass;
    use base qw/BaseClass/;
    sub foo {}
    after bar => sub {}

"SubClass->meta->get_all_methods_with_attributes" will return "BaseClass->meta->get_method('foo')" for the above example, but this method will not, and will return the wrapped bar method, whereas "get_all_methods_with_attributes" will return the original method.

Support

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-MethodAttributes> (or [email protected] <mailto:[email protected]>).

There is also a mailing list available for users of this distribution, at <http://lists.perl.org/list/moose.html>.

There is also an irc channel available for users of this distribution, at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.

Releases

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

  1. 6.0
  2. 7
  3. 8
  4. 9–10
  5. 11–13

Authors

•

Florian Ragwitz <[email protected]>

•

Tomas Doran <[email protected]>

From libmoosex-methodattributes-perl 0.32-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.