Tomas Doran > MooseX-MethodAttributes-0.11_01 > MooseX::MethodAttributes::Role::Meta::Role

Download:
MooseX-MethodAttributes-0.11_01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View Bugs
Report a bug
Module Version: 0.11_01   Source   Latest Release: MooseX-MethodAttributes-0.18

NAME ^

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

VERSION ^

version 0.11_01

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.

AUTHORS ^

  Florian Ragwitz <rafl@debian.org>
  Tomas Doran <bobtfish@bobtfish.net>

COPYRIGHT AND LICENSE ^

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.