MooseX::Meta::Signature::Positional - Positional signature metaclass
This API is unstable, it may change at any time. This should not affect ordinary MooseX::Method usage.
use MooseX::Meta::Signature::Positional; my $signature = MooseX::Meta::Signature::Positional->new ( { required => 1 } ); my @results; eval { @results = $signature->validate (42); };
Validate the arguments against the signature. Returns a list of the validated arguments or throws an exception on validation error.
Exports a data structure representing the signature.
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.
Anders Nor Berle <debolaz@gmail.com>
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.
To install MooseX::Method, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Method
CPAN shell
perl -MCPAN -e shell install MooseX::Method
For more information on module installation, please visit the detailed CPAN module installation guide.