MooseX::KavorkaInfo(3pm)

MooseX::KavorkaInfo3pm

Make kavorka->info available through moose meta objects

Usage

   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"

Overview

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.

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.

Releases

2 releases since Debian 9 (Stretch); the text changed 1 time.

  1. 9
  2. 10

Bugs

Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=Kavorka>.

Author

Toby Inkster <[email protected]>.

From libkavorka-perl 0.039-3 in Debian 10 (Buster). Parsed by carta from the page's man source.