The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MooseX::Meta::Method::Signature - Signature supporting method metaclass

WARNING

This API is unstable, it may change at any time. This should not affect ordinary MooseX::Method usage.

SYNOPSIS

  use MooseX::Meta::Method::Signature;
  use MooseX::Meta::Signature::Named;

  my $method = MooseX::Meta::Method::Signature->wrap_with_signature (
    MooseX::Meta::Signature::Named->new,
    sub { print "Hello world!\n" },
  );

  Someclass->meta->add_method (foo => $method);

DESCRIPTION

A subclass of Moose::Meta::Method that has some added attributes and methods to support signatures.

METHODS

wrap_with_signature

Similar to the wrap method from Moose::Meta::Method but lets you specify a signature for your coderef.

signature

Returns the signature if any.

has_signature

Returns true or false depending on if a signature is present.

SEE ALSO

Moose::Meta::Method

BUGS

Most software has bugs. This module probably isn't an exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Anders Nor Berle <debolaz@gmail.com>

COPYRIGHT AND LICENSE

Copyright 2007 by Anders Nor Berle.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.