Data::Object::Role

Data-Object Role Declaration

package Persona;

use Data::Object::Role;

with 'Relatable';

1;

Moo::Role

Data::Object::RoleHas

Data::Object::Library

This package modifies the consuming package making it a role.

+=head1 KEYWORDS

This package provides the following keywords.

+=head2 has

package Person;

use Data::Object 'Class';

has fname => (
  is => 'ro',
  isa => 'Str'
);

has lname => (
  is => 'ro',
  isa => 'Str'
);

1;

The has keyword is used to declare class attributes, which can be accessed and assigned to using the built-in getter/setter or by the object constructor. See Moo for more information.

+=head2 with

package Person;

use Data::Object 'Class';

with 'Employable';

1;

The with keyword is used to declare roles to be used and compose into your role. See Moo for more information.

8 POD Errors

The following errors were encountered while parsing the POD:

Around line 8:

Unknown directive: =name

Around line 12:

Unknown directive: =abstract

Around line 16:

Unknown directive: =synopsis

Around line 26:

Unknown directive: =inherits

Around line 30:

Unknown directive: =integrates

Around line 34:

Unknown directive: =libraries

Around line 38:

Unknown directive: =description

Around line 42:

Unknown directive: =headers