-
-
27 Jul 2018 17:58:13 UTC
- Distribution: Kavorka
- Module version: 0.039
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (1)
- Testers (2952 / 456 / 0)
- Kwalitee
Bus factor: 1- 86.27% Coverage
- License: perl_5
- Perl: v5.14.0
- Activity
24 month- Tools
- Download (77.93KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 6 contributorsNAME
MooseX::KavorkaInfo - make Kavorka->info available through Moose meta objects
SYNOPSIS
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"
DESCRIPTION
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.
Methods
signature
-
Returns a Kavorka::Signature object.
declaration_keyword
-
Returns a string indicating what keyword the method was declared with.
BUGS
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Kavorka.
SEE ALSO
Kavorka::Manual::API, Moose::Meta::Method.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
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.
DISCLAIMER OF WARRANTIES
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.
Module Install Instructions
To install Kavorka, copy and paste the appropriate command in to your terminal.
cpanm Kavorka
perl -MCPAN -e shell install Kavorka
For more information on module installation, please visit the detailed CPAN module installation guide.