MooseX::KavorkaInfo(3pm) | User Contributed Perl Documentation | MooseX::KavorkaInfo(3pm) |
MooseX::KavorkaInfo - make Kavorka->info available through Moose meta objects
package Foo { use Moose; use MooseX::KavorkaInfo; use Kavorka qw( -default -modifiers ); method xxx (Int $x) { return $x ** 3 } } package Foo::Verbose { use Moose; use MooseX::KavorkaInfo; use Kavorka qw( -default -modifiers ); extends "Foo"; before xxx { warn "Called xxx" } } my $method = Foo::Verbose->meta->get_method("xxx"); say $method->signature->params->[1]->type->name; # says "Int"
MooseX::KavorkaInfo adds two extra methods to the Moose::Meta::Method meta objects associated with a class.
It "sees through" method modifiers to inspect the original method declaration.
Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=Kavorka>.
Kavorka::Manual::API, Moose::Meta::Method.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2013-2014, 2017 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
2019-01-17 | perl v5.28.1 |