Deprecated.
NAME
MooseX::Meta::Signature::Combined - Combined signature metaclass
WARNING
This API is unstable, it may change at any time. This should not affect ordinary MooseX::Method usage.
SYNOPSIS
use MooseX::Meta::Signature::Combined;
my $signature = MooseX::Meta::Signature::Combined->new (
{ isa => 'Int' },
foo => { required => 1 },
);
my @results;
eval {
@results = $signature->validate (23,bar => 2);
};
METHODS
- validate
-
Validates the arguments against the signature. The first arguments must be the positional ones. The named arguments must be in the form of a hash, unlike the named signature this does not support hashrefs. Returns a list of the validated positional arguments and a hashref of the validated named arguments or throws an exception on validation error.
- named_signature
-
Returns the named signature.
- positional_signature
-
Returns the positional signature.
- positional_signature_size
-
Returns the length of the positional signature.
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.