| MooseX-Declare documentation | Contained in the MooseX-Declare distribution. |
MooseX::Declare::Syntax::MethodDeclaration::Parameterized
This software is copyright (c) 2010 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| MooseX-Declare documentation | Contained in the MooseX-Declare distribution. |
package MooseX::Declare::Syntax::MethodDeclaration::Parameterized; BEGIN { $MooseX::Declare::Syntax::MethodDeclaration::Parameterized::AUTHORITY = 'cpan:FLORA'; } BEGIN { $MooseX::Declare::Syntax::MethodDeclaration::Parameterized::VERSION = '0.34'; } use Moose::Role; use MooseX::Role::Parameterized 0.12 (); use namespace::autoclean; around register_method_declaration => sub { my ($next, $self, $parameterizable_meta, $name, $method) = @_; my $meta = $self->metaclass_for_method_application($parameterizable_meta, $name, $method); $self->$next($meta, $name, $method); }; sub metaclass_for_method_application { return MooseX::Role::Parameterized->current_metaclass; } 1; __END__