MooseX::MethodAttributes::Role::Meta::Role.3pm

Langue: en

Version: 2009-06-07 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

MooseX::MethodAttributes::Role::Meta::Role - metarole role for storing code attributes

VERSION

version 0.14

SYNOPSIS

     package MyRole;
     use Moose::Role -traits => 'MooseX::MethodAttributes::Role::Meta::Role';
 
     sub foo : Bar Baz('corge') { ... }
 
     package MyClass
     use Moose;
 
     with 'MyRole';
 
     my $attrs = MyClass->meta->get_method('foo')->attributes; # ["Bar", "Baz('corge')"]
 
 

DESCRIPTION

This module allows you to add code attributes to methods in Moose roles.

These attributes can then be found later once the methods are composed into a class.

Note that currently roles with attributes cannot have methods excluded or aliased, and will in turn confer this property onto any roles they are composed onto.

AUTHORS

   Florian Ragwitz <rafl@debian.org>
   Tomas Doran <bobtfish@bobtfish.net>
 
 
This software is copyright (c) 2009 by Florian Ragwitz.

This is free software; you can redistribute it and/or modify it under the same terms as perl itself.