Venus::Role::Rejectable

Rejectable Role

Rejectable Role for Perl 5

package ExampleAccept;

use Venus::Class 'attr';

attr 'name';

package ExampleReject;

use Venus::Class 'attr', 'with';

with 'Venus::Role::Rejectable';

attr 'name';

package main;

my $example = ExampleReject->new(name => 'example', test => 12345);

# bless({name => 'example'}, "Example")

This package provides a mechanism for rejecting unexpected constructor arguments.

t/Venus.t: present: authors t/Venus.t: present: license

6 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: =synopsis

Around line 77:

Unknown directive: =description

Around line 85:

Unknown directive: =partials