Venus::Role::Unpackable
Unpackable Role
Unpackable Role for Perl 5
method: unpack
package Example;
use Venus::Class;
with 'Venus::Role::Unpackable';
sub execute {
return shift;
}
package main;
my $example = Example->new;
# $example->unpack("hello", 123, 1.23)->signature(
# 'example', 'string', 'number', 'float',
# );
This package modifies the consuming package and provides methods for unpacking and validating argument lists.
The unpack method passes the arguments provided to Venus::Unpack for unpacking and validating arbitrary argument lists.
unpack(Any @args) (Venus::Unpack)
{ since => '2.01', }
=example-1 unpack
package main;
my $example = Example->new;
my $results = $example->unpack("hello", 123, 1.23)->signature(
'example-1',
'any',
);
# ["hello", 123, 1.23]
t/Venus.t: pdml: authors t/Venus.t: pdml: license
12 POD Errors
The following errors were encountered while parsing the POD:
- Around line 13:
Unknown directive: =name
- Around line 21:
Unknown directive: =tagline
- Around line 29:
Unknown directive: =abstract
- Around line 37:
Unknown directive: =includes
- Around line 45:
Unknown directive: =synopsis
- Around line 76:
Unknown directive: =description
- Around line 85:
Unknown directive: =method
- Around line 90:
Unknown directive: =signature
- Around line 94:
Unknown directive: =metadata
- Around line 137:
=cut found outside a pod block. Skipping to next block.
- Around line 162:
=cut found outside a pod block. Skipping to next block.
- Around line 172:
Unknown directive: =partials